fekriomar / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

(libpcap: bad dump file format) #341

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.get dumps with airodump-ng  on ivs, cap, and other formats and i always get 
that its a bad file format
2.
3.

What is the expected output? What do you see instead?
 pyrit  -r /root/7-01.kismet.csv -i /root/final-wordlist\ 2.txt attack_passthrough
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Parsing file '/root/7-01.kismet.csv' (1/1)...
Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 117, in initFromArgv
    func(self, **options)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 165, in new_f
    f(*args, **kwds)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 917, in attack_passthrough
    ap = self._fuzzyGetAP(self._getParser(capturefile), bssid, essid)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 180, in _getParser
    dev = cpyrit.pckttools.PcapDevice(capturefile)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/pckttools.py", line 491, in __init__
    self.open_offline(fname)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/pckttools.py", line 572, in open_offline
    _cpyrit_cpu.PcapDevice.open_offline(self, fname)
IOError: Failed to open file '/root/7-01.kismet.csv' (libpcap: bad dump file 
format)

What version of the product are you using? On what operating system?
backtrack 5

Please provide any additional information below.

Original issue reported on code.google.com by mannydia...@gmail.com on 11 Aug 2011 at 5:56

GoogleCodeExporter commented 9 years ago
This error comes directly from libpcap, Pyrit just passes it on.

You can't parse the .csv files created by Kismet, these are flat text files. 
Stick to the .cap file and you should be good to go.

Original comment by lukas.l...@gmail.com on 11 Aug 2011 at 8:01

GoogleCodeExporter commented 9 years ago
I tried the .cap file and i get the same output

Original comment by mannydia...@gmail.com on 11 Aug 2011 at 3:48

GoogleCodeExporter commented 9 years ago
pyrit  -r /root/wire7-03.cap -i /root/wordlist.txt attack_passthrough
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Parsing file '/wire7-03.cap' (1/1)...
Parsed 6 packets (6 802.11-packets), got 2 AP(s)

Picked AccessPoint c0:3f:0e:ef:c9:66 ('wire7') automatically.                   

python: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) 
&((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) 
&& old_size == 0) || ((unsigned long) (old_size) >= (unsigned 
long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * 
(sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 
0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Aborted

Original comment by mannydia...@gmail.com on 12 Aug 2011 at 5:48

GoogleCodeExporter commented 9 years ago
I tried this same file with aircrack and it works just fine... but pyrit doesn't

Opening wire7-03.cap
Read 351 packets.

   #  BSSID              ESSID                     Encryption

   1  C0:3F:0E:EF:C9:66  wire7                     WPA (1 handshake)

Original comment by mannydia...@gmail.com on 12 Aug 2011 at 4:07

GoogleCodeExporter commented 9 years ago
Works here. Which version of libpcap and python are you using?

>> pyrit -r wire7-03.cap analyze
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Parsing file 'wire7-03.cap' (1/1)...
Parsed 6 packets (6 802.11-packets), got 2 AP(s)

#1: AccessPoint c0:3f:0e:ef:c9:66 ('wire7'):
  #1: Station 00:21:e9:df:53:00, 1 handshake(s):
    #1: HMAC_MD5_RC4, good, spread 1
#2: AccessPoint c2:3f:0e:ef:c9:67 ('wire7'):

Original comment by lukas.l...@gmail.com on 12 Aug 2011 at 5:11

GoogleCodeExporter commented 9 years ago
How do i check which version do i have? I did the sudo apt-get update but it 
seems everything is up to date on bt5....also how can i upgrade them is i have 
them not up to date? 

Original comment by mannydia...@gmail.com on 13 Aug 2011 at 5:27

GoogleCodeExporter commented 9 years ago
You can execute 'python -V' to find out your version of Python. Please google 
yourself on how to use aptitude to find out the version of libpcap you are 
using...

Original comment by lukas.l...@gmail.com on 16 Aug 2011 at 11:48

GoogleCodeExporter commented 9 years ago
libpcap-dev/revolution uptodate 1.0.0-6
libpcap0.8/revolution uptodate 1.0.0-6
libpcap0.8-dev/revolution uptodate 1.0.0-6

Python 2.6

I tried more this time and the first time i run i get the one on comment 5...I 
run it again right after and get Segmentation fault...I run it again and that 
time works...so i get those three outputs not in the same order every time but 
it works sometimes

Original comment by mannydia...@gmail.com on 17 Aug 2011 at 7:05

GoogleCodeExporter commented 9 years ago
pyrit -b 00:24:7B:B8:1E:E1 -r ch11-02.cap -i password.txt attack_passthrough
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Parsing file 'ch11-02.cap' (1/1)...
Parsed 22128 packets (22128 802.11-packets), got 9 AP(s)

*** glibc detected *** /usr/bin/python: free(): invalid next size (fast): 
0xb4200c40 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0xb75d1591]
/lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0xb75d2de8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0xb75d5ecd]
/usr/bin/python[0x80850bd]
/usr/bin/python[0x8085224]
/usr/bin/python(PyEval_EvalFrameEx+0x4c51)[0x80e1451]
/usr/bin/python(PyEval_EvalCodeEx+0x857)[0x80e2807]
/usr/bin/python(PyEval_EvalFrameEx+0x448b)[0x80e0c8b]
/usr/bin/python(PyEval_EvalFrameEx+0x53b0)[0x80e1bb0]
/usr/bin/python(PyEval_EvalFrameEx+0x53b0)[0x80e1bb0]
/usr/bin/python(PyEval_EvalFrameEx+0x53b0)[0x80e1bb0]
/usr/bin/python(PyEval_EvalCodeEx+0x857)[0x80e2807]
/usr/bin/python[0x816b2ac]
/usr/bin/python(PyObject_Call+0x4a)[0x806245a]
/usr/bin/python[0x806a45c]
/usr/bin/python(PyObject_Call+0x4a)[0x806245a]
/usr/bin/python(PyEval_CallObjectWithKeywords+0x42)[0x80db892]
/usr/bin/python[0x810e398]
/lib/tls/i686/cmov/libpthread.so.0(+0x596e)[0xb78a496e]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb7633a4e]
======= Memory map: ========
08048000-08228000 r-xp 00000000 08:31 271497     /usr/bin/python2.6
08228000-08229000 r--p 001df000 08:31 271497     /usr/bin/python2.6
08229000-08278000 rw-p 001e0000 08:31 271497     /usr/bin/python2.6             

08278000-08281000 rw-p 00000000 00:00 0                                         

09702000-09d20000 rw-p 00000000 00:00 0          [heap]                         

b39ff000-b3a00000 ---p 00000000 00:00 0                                         

b3a00000-b4200000 rwxp 00000000 00:00 0 
b4200000-b4221000 rw-p 00000000 00:00 0 
b4221000-b4300000 ---p 00000000 00:00 0 
b4387000-b4388000 ---p 00000000 00:00 0 
b4388000-b4b88000 rwxp 00000000 00:00 0 
b4b88000-b4b89000 ---p 00000000 00:00 0 
b4b89000-b5389000 rwxp 00000000 00:00 0 
b5389000-b538a000 ---p 00000000 00:00 0 
b538a000-b5b8a000 rwxp 00000000 00:00 0 
b5b8a000-b5bcb000 rw-p 00000000 00:00 0 
b5bcb000-b5bcd000 r-xp 00000000 08:31 787721     
/usr/lib/python2.6/dist-packages/Crypto/Cipher/ARC4.so
b5bcd000-b5bce000 r--p 00001000 08:31 787721     
/usr/lib/python2.6/dist-packages/Crypto/Cipher/ARC4.so
b5bce000-b5bcf000 rw-p 00002000 08:31 787721     
/usr/lib/python2.6/dist-packages/Crypto/Cipher/ARC4.so
b5bcf000-b5c92000 rw-p 00000000 00:00 0 
b5cbc000-b5ced000 r-xp 00000000 08:31 789290     
/usr/lib/python2.6/dist-packages/numpy/random/mtrand.so
b5ced000-b5cee000 r--p 00030000 08:31 789290     
/usr/lib/python2.6/dist-packages/numpy/random/mtrand.so
b5cee000-b5cff000 rw-p 00031000 08:31 789290     
/usr/lib/python2.6/dist-packages/numpy/random/mtrand.so
b5cff000-b5d00000 rw-p 00000000 00:00 0 
b5d00000-b63e3000 r-xp 00000000 08:31 273058     /usr/lib/liblapack.so.3gf.0
b63e3000-b63e4000 r--p 006e2000 08:31 273058     /usr/lib/liblapack.so.3gf.0
b63e4000-b63e7000 rw-p 006e3000 08:31 273058     /usr/lib/liblapack.so.3gf.0
b63e7000-b6535000 rw-p 00000000 00:00 0 
b6535000-b6554000 r-xp 00000000 08:31 788736     
/usr/lib/python2.6/dist-packages/numpy/core/scalarmath.so
b6554000-b6555000 r--p 0001e000 08:31 788736     
/usr/lib/python2.6/dist-packages/numpy/core/scalarmath.so
b6555000-b6556000 rw-p 0001f000 08:31 788736     
/usr/lib/python2.6/dist-packages/numpy/core/scalarmath.so
b6556000-b6597000 rw-p 00000000 00:00 0 
b6597000-b665b000 r-xp 00000000 08:31 272722     /usr/lib/libgfortran.so.3.0.0
b665b000-b665c000 ---p 000c4000 08:31 272722     /usr/lib/libgfortran.so.3.0.0
b665c000-b665d000 r--p 000c4000 08:31 272722     /usr/lib/libgfortran.so.3.0.0
b665d000-b665e000 rw-p 000c5000 08:31 272722     /usr/lib/libgfortran.so.3.0.0
b665e000-b665f000 rw-p 00000000 00:00 0 
b665f000-b66da000 r-xp 00000000 08:31 272489     /usr/lib/libblas.so.3gf.0
b66da000-b66db000 r--p 0007a000 08:31 272489     /usr/lib/libblas.so.3gf.0
b66db000-b66dc000 rw-p 0007b000 08:31 272489     /usr/lib/libblas.so.3gf.0
b66e5000-b66ed000 r-xp 00000000 08:31 789033     
/usr/lib/python2.6/dist-packages/numpy/fft/fftpack_lite.so
b66ed000-b66ee000 r--p 00007000 08:31 789033     
/usr/lib/python2.6/dist-packages/numpy/fft/fftpack_lite.so
b66ee000-b66ef000 rw-p 00008000 08:31 789033     
/usr/lib/python2.6/dist-packages/numpy/fft/fftpack_lite.so
b66ef000-b6704000 r-xp 00000000 08:31 788714     
/usr/lib/python2.6/dist-packages/numpy/core/_sort.so
b6704000-b6705000 r--p 00014000 08:31 788714     
/usr/lib/python2.6/dist-packages/numpy/core/_sort.so
b6705000-b6706000 rw-p 00015000 08:31 788714     
/usr/lib/python2.6/dist-packages/numpy/core/_sort.so
b6706000-b6741000 r-xp 00000000 08:31 788745     
/usr/lib/python2.6/dist-packages/numpy/core/umath.so
b6741000-b6742000 r--p 0003a000 08:31 788745     
/usr/lib/python2.6/dist-packages/numpy/core/umath.so
b6742000-b6745000 rw-p 0003b000 08:31 788745     
/usr/lib/python2.6/dist-packages/numpy/core/umath.so
b6745000-b6746000 rw-p 00000000 00:00 0 
b6746000-b67ac000 r-xp 00000000 08:31 788729     
/usr/lib/python2.6/dist-packages/numpy/core/multiarray.so
b67ac000-b67ad000 r--p 00065000 08:31 788729     
/usr/lib/python2.6/dist-packages/numpy/core/multiarray.so
b67ad000-b67b3000 rw-p 00066000 08:31 788729     
/usr/lib/python2.6/dist-packages/numpy/core/multiarray.so
b67b3000-b6877000 rw-p 00000000 00:00 0 
b6877000-b688b000 r-xp 00000000 08:31 273010     /usr/lib/libkpathsea.so.5.0.0
b688b000-b688c000 r--p 00013000 08:31 273010     /usr/lib/libkpathsea.so.5.0.0
b688c000-b688d000 rw-p 00014000 08:31 273010     /usr/lib/libkpathsea.so.5.0.0
b688d000-b688f000 rw-p 00000000 00:00 0 
b688f000-b6891000 r-xp 00000000 08:31 787493     
/usr/lib/pyshared/python2.6/pyx/pykpathsea/_pykpathsea.so
b6891000-b6892000 r--p 00001000 08:31 787493     
/usr/lib/pyshared/python2.6/pyx/pykpathsea/_pykpathsea.so
b6892000-b6893000 rw-p 00002000 08:31 787493     
/usr/lib/pyshared/python2.6/pyx/pykpathsea/_pykpathsea.so
b6893000-b69c5000 rw-p 00000000 00:00 0 
b69c5000-b69e2000 r-xp 00000000 08:31 1966166    /lib/libgcc_s.so.1
b69e2000-b69e3000 r--p 0001c000 08:31 1966166    /lib/libgcc_s.so.1
b69e3000-b69e4000 rw-p 0001d000 08:31 1966166    /lib/libgcc_s.so.1
b69e4000-b7230000 r-xp 00000000 08:31 263281     /usr/lib/libcuda.so.280.13
b7230000-b7252000 rw-p 0084b000 08:31 263281     /usr/lib/libcuda.so.280.13
b7252000-b7274000 rw-p 00000000 00:00 0 
b7274000-b7278000 r-xp 00000000 08:31 789144     
/usr/lib/python2.6/dist-packages/numpy/linalg/lapack_lite.so
b7278000-b7279000 r--p 00004000 08:31 789144     
/usr/lib/python2.6/dist-packages/numpy/linalg/lapack_lite.so
b7279000-b727a000 rw-p 00005000 08:31 789144     
/usr/lib/python2.6/dist-packages/numpy/linalg/lapack_lite.so
b727a000-b727e000 r-xp 00000000 08:31 789050     
/usr/lib/python2.6/dist-packages/numpy/lib/_compiled_base.so
b727e000-b727f000 r--p 00003000 08:31 789050     
/usr/lib/python2.6/dist-packages/numpy/lib/_compiled_base.so
b727f000-b7280000 rw-p 00004000 08:31 789050     
/usr/lib/python2.6/dist-packages/numpy/lib/_compiled_base.so
b7280000-b7285000 r-xp 00000000 08:31 788711     
/usr/lib/python2.6/dist-packages/numpy/core/_dotblas.so
b7285000-b7286000 r--p 00004000 08:31 788711     
/usr/lib/python2.6/dist-packages/numpy/core/_dotblas.soAborted

Original comment by mannydia...@gmail.com on 7 Mar 2012 at 8:01

GoogleCodeExporter commented 9 years ago
pyrit -b 00:24:7B:B8:1E:AA -r ch11.cap -i wordlist.txt attack_passthrough
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Parsing file 'ch11.cap' (1/1)...
Parsed 22128 packets (22128 802.11-packets), got 9 AP(s)

Segmentation fault

Original comment by mannydia...@gmail.com on 7 Mar 2012 at 8:06

GoogleCodeExporter commented 9 years ago
Some one mentioned that it could be my ram but i ran memtest for 12 hours and 
it didnt find anything wrong with my ram

Original comment by mannydia...@gmail.com on 7 Mar 2012 at 8:15

Attachments: