pyrcrack icon indicating copy to clipboard operation
pyrcrack copied to clipboard

No steps to import the modules and work with it.

Open uncommonthinker opened this issue 7 years ago • 6 comments

Can you give a detailed step by step instruction as to how to use the module in my python code?

uncommonthinker avatar Feb 07 '17 11:02 uncommonthinker

Just check the source code. Here is an example on how to use Airodump, I read the code in https://github.com/XayOn/pyrcrack/blob/master/pyrcrack/scanning.py

Good luck

from pyrcrack.scanning import Airodump
kwargs = {
            'output-format': 'csv,pcap',
            'channel': 1,
            'write': '/tmp/capture'
        }
airodump_process = Airodump(self.iface, **kwargs)
airodump_process.start()

llazzaro avatar Mar 01 '17 06:03 llazzaro

And have in account that this has not been in active development for a while. Sorry

PRs are welcome of course 😀😉

El mié., 1 mar. 2017 7:47, Leonardo Lazzaro [email protected] escribió:

Just check the source code. Here is an example on how to use Airodump, I read the code in https://github.com/XayOn/pyrcrack/blob/master/pyrcrack/scanning.py

Good luck

from pyrcrack.scanning import Airodump kwargs = { 'output-format': 'csv,pcap', 'channel': 1, 'write': '/tmp/capture' } airodump_process = Airodump(self.iface, **kwargs) airodump_process.start()

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/XayOn/pyrcrack/issues/1#issuecomment-283259375, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGirkzcDCL4Qt3w3JG85yt5hLWUjPHpks5rhRRzgaJpZM4L5X4z .

XayOn avatar Mar 02 '17 20:03 XayOn

Hey @uncommonthinker @llazzaro FYI pyrcrack now currently has improved quite a bit, and I'm working on a better documentation set.

I'm reopening this issue and hijacking it a bit to document it.

XayOn avatar Apr 11 '22 17:04 XayOn

Could you please explain to me how to fix this import error image It is the Airelay example

Kriz1618 avatar May 02 '22 17:05 Kriz1618

@Kriz1618 that shouldn't happen.

Are you, by any chance, executing the examples from the develop branch but having a stable release installed? 😃

As you have pyrcrack installed directly as root, I can guess you did a "sudo pip install pyrcrack", instead of installing from the repo.

That's perfectly valid, except that you need to use the examples for that release, you can't use modern examples on an older release. I don't know wich release you installed, so you need to figure that out, download the relase zip, and run the examples from there.

It's either that, installing it with poetry from the repo, (sudo -E - is useful for this), or waiting for the next major release and upgrade everything.

XayOn avatar May 02 '22 21:05 XayOn

Yes, I've installed it with sudo pip3

Kriz1618 avatar May 02 '22 21:05 Kriz1618

@Kriz1618 Then, as I said, it wouldn't have worked because you were using unreleased examples with a released version. I've set up "main" branch as the public main branch so that confusion shouldn't happen again, main branch and doc will be synced with latest released version from now on.

XayOn avatar Dec 02 '22 23:12 XayOn

I'm closing this issue and will be opening a new one for an improved documentation

XayOn avatar Dec 03 '22 02:12 XayOn