elllusion / androguard

Automatically exported from code.google.com/p/androguard
Apache License 2.0
0 stars 0 forks source link

Segmentation fault when using androsign #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

When executing androsign I get the following errors: (Linux Debian 64bit)

# ./androsign.py -i 2.apk -b signatures/dbandroguard -c signatures/dbconfig -v
Foncy.B (0)
    ---> METHSIM L:0 I:0 N:0 J:1 4413 [4.6616735458374023, 4.5721940994262695, 4.6310625076293945, 4.4476799964904785, 4.0113649368286133]
Foncy.C (0)
    ---> METHSIM L:1 I:1 N:0 J:1 1754 [4.7942671775817871, 4.6375041007995605, 4.4870743751525879, 4.6819987297058105, 0.0]
GingerMaster (0 and 1)
    ---> METHSIM L:2 I:2 N:0 J:2 962 [4.9418520927429199, 4.3729357719421387, 4.7183656692504883, 4.4228439331054688, 3.9754178524017334]
    ---> METHSIM L:2 I:3 N:1 J:2 1244 [4.9450316429138184, 4.7812762260437012, 4.7661762237548828, 4.5302424430847168, 3.9754178524017334]
RageagainstTheCage (0)
    ---> BINHASH L:3 I:4 N:0 J:1
DroidDeluxe (0 and 1 and 2)
    ---> METHSIM L:4 I:5 N:0 J:3 905 [4.792943000793457, 4.1135177612304688, 4.7298212051391602, 4.4896812438964844, 4.0113649368286133]
    ---> METHSIM L:4 I:6 N:1 J:3 1540 [4.8668885231018066, 4.2125983238220215, 4.715888500213623, 4.7183380126953125, 3.8208885192871094]
    ---> METHSIM L:4 I:7 N:2 J:3 5226 [4.765784740447998, 4.7281794548034668, 4.4956917762756348, 4.5737781524658203, 4.149996280670166]
YZHCSMS (0 and 1)
    ---> METHSIM L:5 I:8 N:0 J:2 409 [5.0327415466308594, 1.6237781047821045, 4.7683391571044922, 4.8285346031188965, 3.9754178524017334]
    ---> METHSIM L:5 I:9 N:1 J:2 1900 [4.7891192436218262, 4.6746187210083008, 4.514441967010498, 4.7024493217468262, 0.0]
Wat (0)
    ---> CLASSSIM L:6 I:10 N:0 J:1 3551 [3.9028834274836948, 2.8835478850773404, 2.3970618758882796, 4.0557840211050848, 0.6026742117745536]
Pjapps (0)
    ---> METHSIM L:7 I:11 N:0 J:1 1981 [4.9978241920471191, 4.7603583335876465, 4.6897745132446289, 4.4102416038513184, 3.9754178524017334]
SndApps (0 or 1)
    ---> METHSIM L:8 I:12 N:0 J:2 1250 [4.6240973472595215, 1.2427303791046143, 4.4894008636474609, 4.5552773475646973, 4.2081961631774902]
    ---> METHSIM L:8 I:13 N:1 J:2 1216 [4.9923348426818848, 4.8052005767822266, 4.5855984687805176, 4.4975037574768066, 4.2158646583557129]
Crusewind ((0 or 1) and 2)
    ---> METHSIM L:9 I:14 N:0 J:3 1261 [4.9798541069030762, 4.6750292778015137, 4.7505569458007812, 4.5253338813781738, 4.2801966667175293]
    ---> METHSIM L:9 I:15 N:1 J:3 918 [4.8647561073303223, 4.5962967872619629, 4.6942548751831055, 4.5018887519836426, 0.0]
    ---> METHSIM L:9 I:16 N:2 J:3 221 [4.7028636932373047, 1.5338449478149414, 4.535919189453125, 4.4318118095397949, 0.0]
BaseBridge.B (0 and 1)
    ---> METHSIM L:10 I:17 N:0 J:2 2308 [4.8561825752258301, 4.731076717376709, 4.5397763252258301, 4.5733532905578613, 3.9754178524017334]
    ---> METHSIM L:10 I:18 N:1 J:2 2624 [4.763066291809082, 4.6711916923522949, 4.5062112808227539, 4.8685741424560547, 3.9754178524017334]
BaseBridge.C (0)
    ---> METHSIM L:11 I:19 N:0 J:1 3557 [4.5441703796386719, 3.2457294464111328, 4.5147109031677246, 4.5192923545837402, 3.9754178524017334]
BaseBridge ((0 or 1) and 2)
    ---> METHSIM L:12 I:20 N:0 J:3 3066 [4.5579466819763184, 1.6733947992324829, 4.5265865325927734, 4.5559782981872559, 3.9754178524017334]
    ---> METHSIM L:12 I:21 N:1 J:3 4477 [5.0170536041259766, 4.8571329116821289, 4.6744322776794434, 4.4395885467529297, 3.9754178524017334]
    ---> METHSIM L:12 I:22 N:2 J:3 966 [4.7569260597229004, 1.7403091192245483, 4.6997122764587402, 4.4517860412597656, 3.9754178524017334]
Ozotshielder.C (0)
    ---> METHSIM L:13 I:23 N:0 J:1 1837 [4.5943169593811035, 4.525092601776123, 4.4844989776611328, 4.4258179664611816, 0.0]
Ewalls (0)
    ---> METHSIM L:14 I:24 N:0 J:1 14066 [4.5969524383544922, 4.7685627937316895, 4.4099941253662109, 4.2093234062194824, 3.9754178524017334]
DroidDreamLight (0)
    ---> METHSIM L:15 I:25 N:0 J:1 1574 [4.7781567573547363, 4.6544718742370605, 3.8625667095184326, 4.5037317276000977, 0.0]
Spitmo (0)
    ---> METHSIM L:16 I:26 N:0 J:1 1895 [5.0166354179382324, 4.790163516998291, 4.6962299346923828, 4.6933317184448242, 3.9754178524017334]
Boxer (0 and 1)
    ---> METHSIM L:17 I:27 N:0 J:2 1699 [5.1056971549987793, 4.8911633491516113, 4.6583089828491211, 4.6163825988769531, 0.0]
    ---> METHSIM L:17 I:28 N:1 J:2 798 [4.9127368927001953, 4.6306390762329102, 4.1440944671630859, 4.5409460067749023, 0.0]
Hongtoutou (0)
    ---> METHSIM L:18 I:29 N:0 J:1 1413 [5.1167397499084473, 4.8783326148986816, 4.7843966484069824, 4.7036099433898926, 0.0]
YZHCSMS.B (0)
    ---> METHSIM L:19 I:30 N:0 J:1 1120 [4.9847249984741211, 4.7853765487670898, 4.6623964309692383, 4.4476594924926758, 3.9754178524017334]
DroidDream-Included (0)
    ---> METHSIM L:20 I:31 N:0 J:1 2821 [4.8083133697509766, 4.7362179756164551, 4.5589680671691895, 4.422579288482666, 0.0]
HippoSMS.B (0)
    ---> METHSIM L:21 I:32 N:0 J:1 1181 [4.8786911964416504, 4.891486644744873, 4.6299595832824707, 4.3698744773864746, 0.0]
Foncy (0)
    ---> METHSIM L:22 I:33 N:0 J:1 1500 [4.9286208152770996, 4.6954078674316406, 4.4973897933959961, 4.6937942504882812, 0.0]
Ewalls.B (0)
    ---> METHSIM L:23 I:34 N:0 J:1 11341 [4.574305534362793, 4.6146163940429688, 4.4084692001342773, 4.2746791839599609, 3.9754178524017334]
HippoSMS ((0 and 1) or 2)
    ---> CLASSSIM L:24 I:35 N:0 J:3 1212 [4.6626451810201006, 4.4411741892496748, 2.16331418355306, 4.1790606180826826, 0.0]
    ---> CLASSSIM L:24 I:36 N:1 J:3 788 [4.5609114170074463, 4.4270169734954834, 2.6578314304351807, 4.1325935125350952, 0.0]
    ---> CLASSSIM L:24 I:37 N:2 J:3 458 [4.7386491298675537, 2.8634676933288574, 4.4856486320495605, 4.088369607925415, 0.0]
Ozotshielder (0)
    ---> METHSIM L:25 I:38 N:0 J:1 2178 [4.6285390853881836, 4.6470947265625, 4.5313506126403809, 4.345757007598877, 0.0]
DogoWar (0 and 1)
    ---> CLASSSIM L:26 I:39 N:0 J:2 376 [4.5922770500183105, 4.3906300067901611, 2.7473165988922119, 3.9876822233200073, 0.0]
    ---> CLASSSIM L:26 I:40 N:1 J:2 1729 [4.1555795669555664, 3.6046688079833986, 1.4984882354736329, 3.9250543117523193, 0.0]
Plankton.C (0 and 1)
    ---> METHSIM L:27 I:41 N:0 J:2 697 [5.0583977699279785, 1.567484974861145, 4.8082575798034668, 4.5208311080932617, 4.3333024978637695]
    ---> METHSIM L:27 I:42 N:1 J:2 2301 [4.8061156272888184, 4.7663564682006836, 4.5806660652160645, 4.3953781127929688, 0.0]
Plankton.B (0 and 1)
    ---> METHSIM L:28 I:43 N:0 J:2 1230 [4.6938409805297852, 4.6064891815185547, 4.5410966873168945, 4.6769933700561523, 0.0]
    ---> METHSIM L:28 I:44 N:1 J:2 1179 [4.7628979682922363, 4.5756878852844238, 4.6231117248535156, 4.6342296600341797, 3.8208885192871094]
Zsone (0)
    ---> METHSIM L:29 I:45 N:0 J:1 825 [5.0066843032836914, 4.7855949401855469, 4.6031131744384766, 4.8662714958190918, 3.9754178524017334]
Plankton (0 and 1)
    ---> METHSIM L:30 I:46 N:0 J:2 1511 [4.8705577850341797, 4.6757988929748535, 4.6721949577331543, 4.722226619720459, 3.8208885192871094]
    ---> METHSIM L:30 I:47 N:1 J:2 1377 [4.6603341102600098, 4.0039081573486328, 4.4825272560119629, 4.5173683166503906, 4.3710126876831055]
Lovetrap (0 and 1)
    ---> METHSIM L:31 I:48 N:0 J:2 2131 [4.9191985130310059, 4.3934955596923828, 4.8094043731689453, 4.8097281455993652, 3.9754178524017334]
    ---> METHSIM L:31 I:49 N:1 J:2 3144 [4.9548416137695312, 4.3504295349121094, 4.8521542549133301, 4.6344723701477051, 3.9754178524017334]
GoldDream (0 and 1)
    ---> METHSIM L:32 I:50 N:0 J:2 3512 [4.8103795051574707, 4.7493586540222168, 4.5943202972412109, 4.6015524864196777, 0.0]
    ---> METHSIM L:32 I:51 N:1 J:2 3308 [4.8343148231506348, 1.3113172054290771, 4.8033995628356934, 4.538449764251709, 3.9754178524017334]
Pjapps.B (0)
    ---> METHSIM L:33 I:52 N:0 J:1 2449 [4.9337239265441895, 4.7807784080505371, 4.6869611740112305, 4.5481977462768555, 3.9754178524017334]
Pjapps.C (0 or 1)
    ---> METHSIM L:34 I:53 N:0 J:2 3006 [4.8885741233825684, 4.7182526588439941, 4.6228675842285156, 4.4607253074645996, 0.0]
    ---> METHSIM L:34 I:54 N:1 J:2 3051 [4.9115018844604492, 4.7393302917480469, 4.6674752235412598, 4.5522646903991699, 4.2181391716003418]
Zitmo (0 and 1)
    ---> METHSIM L:35 I:55 N:0 J:2 1016 [4.9809880256652832, 4.7676701545715332, 4.6947941780090332, 4.4621977806091309, 4.2081961631774902]
    ---> METHSIM L:35 I:56 N:1 J:2 564 [4.9196834564208984, 4.8797001838684082, 4.5931968688964844, 4.7688388824462891, 0.0]
NickyBot (0)
    ---> METHSIM L:36 I:57 N:0 J:1 1923 [4.772580623626709, 3.8884062767028809, 4.5958952903747559, 4.6140275001525879, 3.9754178524017334]
Exploid (0)
    ---> BINHASH L:37 I:58 N:0 J:1
GGTracker (0 and 1)
    ---> METHSIM L:38 I:59 N:0 J:2 1628 [4.8290805816650391, 4.057319164276123, 4.7673635482788086, 4.4964823722839355, 4.2384934425354004]
    ---> METHSIM L:38 I:60 N:1 J:2 3008 [4.9003796577453613, 4.6949944496154785, 4.5048131942749023, 4.5457534790039062, 0.0]
Tapsnake (0)
    ---> METHSIM L:39 I:61 N:0 J:1 4099 [4.7968864440917969, 4.4730305671691895, 4.5795297622680664, 4.2302732467651367, 3.9754178524017334]
NickySpy (0 or 1)
    ---> METHSIM L:40 I:62 N:0 J:2 3229 [4.9899697303771973, 4.7834396362304688, 4.8159637451171875, 4.5245232582092285, 0.0]
    ---> METHSIM L:40 I:63 N:1 J:2 2536 [5.0211300849914551, 4.7652387619018555, 4.8861689567565918, 4.5666427612304688, 4.2081961631774902]
Logastrod (0 and 1)
    ---> METHSIM L:41 I:64 N:0 J:2 3511 [5.0234689712524414, 4.8151087760925293, 4.6068859100341797, 4.7003602981567383, 3.9754178524017334]
    ---> METHSIM L:41 I:65 N:1 J:2 1869 [4.9413108825683594, 4.8094344139099121, 4.5841174125671387, 4.5388092994689941, 0.0]
DroidKungfu2 (0)
    ---> METHSIM L:42 I:66 N:0 J:1 1862 [4.6282501220703125, 4.0211343765258789, 4.5443987846374512, 4.1571140289306641, 3.9754178524017334]
SMSHider (0 and 1 and 2)
    ---> METHSIM L:43 I:67 N:0 J:3 4475 [4.8213520050048828, 4.709599494934082, 4.7197036743164062, 4.5428285598754883, 4.5164380073547363]
    ---> METHSIM L:43 I:68 N:1 J:3 4418 [4.8130149841308594, 4.7001566886901855, 4.7191720008850098, 4.5456838607788086, 4.5164380073547363]
    ---> METHSIM L:43 I:69 N:2 J:3 1273 [4.9414114952087402, 4.598602294921875, 4.6776943206787109, 4.6068816184997559, 3.9754178524017334]
Geinimi (0 or 1 or (2 and 3))
    ---> METHSIM L:44 I:70 N:0 J:4 2607 [4.6687860488891602, 4.5770049095153809, 4.4555692672729492, 4.6577677726745605, 3.9754178524017334]
    ---> METHSIM L:44 I:71 N:1 J:4 12644 [4.7114653587341309, 4.7980365753173828, 4.5259051322937012, 4.5926632881164551, 4.1278433799743652]
    ---> METHSIM L:44 I:72 N:2 J:4 885 [4.7507805824279785, 1.4406454563140869, 4.5679025650024414, 4.5526924133300781, 3.9754178524017334]
    ---> METHSIM L:44 I:73 N:3 J:4 740 [4.6218976974487305, 4.4623689651489258, 1.6163301467895508, 4.5717849731445312, 0.0]
RogueSPPush (0)
    ---> CLASSSIM L:45 I:74 N:0 J:1 3093 [4.3179397106170656, 3.7004831314086912, 2.939491558074951, 4.4999289989471434, 0.79508357048034672]
DroidKungfu (0)
    ---> METHSIM L:46 I:75 N:0 J:1 3137 [4.838798999786377, 4.6483860015869141, 4.6914162635803223, 4.7337584495544434, 4.2597851753234863]
DroidDream (0)
    ---> METHSIM L:47 I:76 N:0 J:1 2040 [5.0286870002746582, 4.4915299415588379, 4.9674844741821289, 4.9468302726745605, 0.0]
Ozotshielder.B (0)
    ---> METHSIM L:48 I:77 N:0 J:1 3213 [4.9547429084777832, 4.75701904296875, 4.7511677742004395, 4.822575569152832, 3.9754178524017334]

FIX MINIMUM SIGNATURE 110.5
FIX MINIMUM SIGNATURE 188.0
2.apk : loading apk.. loading dex..Segmentation fault

Original issue reported on code.google.com by spreitze...@googlemail.com on 8 Feb 2012 at 7:13

GoogleCodeExporter commented 9 years ago

Original comment by anthony....@gmail.com on 10 Feb 2012 at 8:47

GoogleCodeExporter commented 9 years ago
after checking out the newest version of the repository (77f61a072ad0) and 
installing python2.7 and python2.7-dev I got the following error:

# ./androsign.py -i 2.apk -b signatures/dbandroguard -c signatures/dbconfig
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted

Used system: Linux 2.6.32-5-amd64 x86_64 GNU/Linux (Debian)

Original comment by spreitze...@googlemail.com on 17 Feb 2012 at 8:21

GoogleCodeExporter commented 9 years ago
Could you try :

$ gdb python

run androsign.py -i 2.apk -b signatures/dbandroguard -c signatures/dbconfig

and after that write "bt" and paste me the trace please

Original comment by anthony....@gmail.com on 17 Feb 2012 at 8:34

GoogleCodeExporter commented 9 years ago
Thank you for your support, I had an error in my $ENV, now androsign is running!

Original comment by spreitze...@googlemail.com on 17 Feb 2012 at 7:53

GoogleCodeExporter commented 9 years ago

Original comment by anthony....@gmail.com on 22 Feb 2012 at 5:06