Results 1 to 5 of 5

Thread: Pyrit 0.3.1 segmentation fault

  1. #1
    Just burned his ISO
    Join Date
    Mar 2010
    Posts
    2

    Default Pyrit 0.3.1 segmentation fault

    Hi,

    I get a Segmentation fault when running Pyrit 0.3.1-dev (svn r228) with a crunch wordlist piped through it.
    Code:
    ./crunch 8 8 abcdefgh | pyrit -r /root/essid-01.cap -e '<ESSID>' -i - attack_passthrough
    It runs through sometimes 70 million PMK and sometimes just a few million, then stops with the message Segmentation fault.

    I googled some and found people had this problem in earlier versions (0.2.4) but that it should be fixed in newer versions. However it doesn't work on my NVIDIA GTX260. Anyone know what is wrong? I would be very greatful for some assistance.

    BT4
    Nvidia GeForce GTX 260
    Intel Core 2 Quad
    4 GB RAM

  2. #2
    Developer
    Join Date
    Mar 2007
    Posts
    6,124

    Default Re: Pyrit 0.3.1 segmentation fault

    I would probablly say its your capfile. I would try striping it with tshark or with the pyrit strip option. As you can see using aircrack's test file it works fine.

    root@bt:/pentest/wireless/aircrack-ng/test# /pentest/passwords/crunch/crunch 8 8 abcdefgh | pyrit -e test -i - -r wpa.cap attack_passthrough
    Pyrit 0.3.1-dev (svn r228) (C) 2008-2010 Lukas Lueg pyrit - Project Hosting on Google Code
    This code is distributed under the GNU General Public License v3+

    Parsing file 'wpa.cap' (1/1)...
    13 packets (13 802.11-packets), 1 APs

    Picked AccessPoint 00:0d:93:eb:b0:8c automatically...
    Tried 3140157 PMKs so far; 8068 PMKs per second.

  3. #3
    Senior Member kidFromBigD's Avatar
    Join Date
    Jan 2010
    Location
    Texas
    Posts
    159

    Default Re: Pyrit 0.3.1 segmentation fault

    I've got a box that has the same problem. For me, this goes back all the way to June 2009. So far I've only found workarounds for the seg-fault and no fixes. My CPU is an AMD dual core, 2G RAM, with a GTX-260 on board.

    @pureh@te - I have seen the seg-fault consistently with large and very small .cap files. I do not think it's related to size or composition of the .cap file, IMHO.

    So, here's what I've done to mitigate the problem:

    0) Upgrade your version of python. The author of pyrit advised me to do this since I was running BT4pre-final when I saw most of my problems. Unfortunately, having upgraded to python 2.6 (from 2.5.2 delivered in BT4pf), I'm still seeing seg-faults.

    1) Assign a NICE value to your pyrit and/or crunch processes. Using your example above I would try:
    Code:
    /usr/bin/nice -n -10 crunch 8 8 abcdefgh | /usr/bin/nice -n -10  pyrit -r /root/essid-01.cap -e '<ESSID>' -i - attack_passthrough
    --> This tells the system to schedule the crunch and pyrit processes with higher priority. It does not solve the problem, but it does seem to help.

    2) Wrap the pyrit commands in bash scripts so you can capture the return code value and loop back if it seg-faults.
    --> If the pyrit command seg-faults, you will observe a return code of 139, or at least I do. Use this command to check the return code after pyrit has run:
    Code:
    echo $?
    --> Now begin to take note of the various return codes from pyrit, and modify the bash scripts accordingly.

    3) Report the problem to pyrit's code owner. I have tried, but so far he hasn't come up with a good fix.
    --> Open a formal ticket against pyrit: Issues - pyrit - Project Hosting on Google Code
    --> Begin a discussion thread here: Pyrit | Google Groups

    Hope this helps. Trust me I feel your pain. Let us know how it goes, and if you have more questions.
    Last edited by kidFromBigD; 03-03-2010 at 09:21 PM. Reason: cleaned up things here & there
    You. Are. Doing. It. Wrong.
    -Gitsnik

  4. #4
    Just burned his ISO
    Join Date
    Mar 2010
    Posts
    2

    Default Re: Pyrit 0.3.1 segmentation fault

    Thank you both for your tips. I've seen the thread abt upgrading Python at pyrit site. I will try both your suggestions next time it stops, this run seems to work fine, 126 million and counting without any changes. I will also file a ticket in pyrit list so they are aware of it.

    kidFromBigD: You have the same GPU as me, could this be hardware/driver related?

  5. #5
    Senior Member kidFromBigD's Avatar
    Join Date
    Jan 2010
    Location
    Texas
    Posts
    159

    Default Re: Pyrit 0.3.1 segmentation fault

    @scarleo -- No, I don't think it has anything to do with our choice of GPU(GTX-260). Driver related? Perhaps.

    I noticed that you are running pyrit in 'attack_passthrough' mode. Well, I run in 'passthrough' mode when I observe seg-faults.

    What does it all mean? A bit more robustness needs to be added into pyrit ... IMHO.

    Cheers!
    You. Are. Doing. It. Wrong.
    -Gitsnik

Similar Threads

  1. Pyrit and ATI-Stream
    By HAL9000 in forum Beginners Forum
    Replies: 7
    Last Post: 12-08-2010, 02:27 PM
  2. pyrit configuration file
    By intertan in forum Beginners Forum
    Replies: 1
    Last Post: 03-01-2010, 06:26 AM
  3. Pyrit Update
    By joker5bb in forum Tool Requests
    Replies: 2
    Last Post: 02-23-2010, 07:07 PM
  4. Possible Pyrit bug.
    By Fiack Yiu in forum Beginners Forum
    Replies: 4
    Last Post: 02-22-2010, 11:59 PM
  5. pyrit database
    By Razack in forum Beginners Forum
    Replies: 1
    Last Post: 02-10-2010, 03:58 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •