maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Brainstorm (https://talk.maemo.org/forumdisplay.php?f=47)
-   -   Aircrack-ng 1.1 would be nice (https://talk.maemo.org/showthread.php?t=72539)

codecxbox 2011-04-26 19:29

Aircrack-ng 1.1 would be nice
 
I have installed Faircrack and it seems to work as its supposed to, very clever piece of soft. I have seen all those IW conflicts with Aircrack-ng 1.1 posts and it also happened to me. I tried the armel deb constructed by Creamy, but it also depends on IW. I recently modified Creamy's deb, killing the IW dependency in control file, but the install paths are wrong according to N900 file structures. Creamy's deb installs to /local but Maemo's aircrack-ng deb installs directly to /usr/opt. If you try the deb I uploaded, AppManager will install it, but it installs to the wrong directories. So this would be nice if:

1-We could compile a working Aircrack 1.1.1-0 for the N900 upon the Maemos freamantle IW 0.92.

I have installed build-esssential but Aircrack requires make 3.81, maemo's is upto 3.80. I downloaded a nonofficial make3.81 deb for the N900 but it didnt work. I believe Aircrack-ng tarball has all the necessary headers and objects to be compiled as a armel deb.

mr_pingu 2011-04-26 19:55

Re: Aircrack-ng 1.1 would be nice
 
tried to get it working too but I ended up to apt-get -f install to fix my depencies problems after palying with aircrack 1.1 and installed 1.0 again. Hope someone manages to get 1.1 working. All I can say is that I am not smart enough for that :(

vi_ 2011-04-26 19:57

Re: Aircrack-ng 1.1 would be nice
 
just extract the IW binary from the debian armel package and stick it in /usr/bin.

Now how hard was that?

codecxbox 2011-04-26 20:19

Re: Aircrack-ng 1.1 would be nice
 
Hmm, thats not the problem

Aircrack 1.1 does not exist for Maemo, as far as I know.

Aircrack 1.0 Maemo fremantle will not coexist with IW 0.93

Aircrack 1.1 will coexist with IW 0.93

It might be that the LXP wifi drivers will not work with IW, but it would nice just to see aircrack 1.1 running.

We could extract Creamy's deb aircrack contents and stick it with a chmod 755, but will AppManager complain?

mr_pingu 2011-04-26 20:28

Re: Aircrack-ng 1.1 would be nice
 
Did you get aircrack ever get working? after I installed creamy's deb I always got not found returned
bin/sh: aircrack-ng not found

codecxbox 2011-04-26 20:30

Re: Aircrack-ng 1.1 would be nice
 
Quote:

Originally Posted by mr_pingu (Post 995789)
Did you get aircrack ever get working? after I installed creamy's deb I always got not found returned
bin/sh: aircrack-ng not found


Yes, I got it working per the Faircrack thread instructions. Read carefully, some steps are to be done as root, others as normal.
But this is not the thread for that. Good Luck..

Mentalist Traceur 2011-04-27 14:55

Re: Aircrack-ng 1.1 would be nice
 
The whole reason CreamyGoodness' .deb depends on iw is specifically because it doesn't conflict with it. *Facepalm*

Creamy Goodness 2011-04-27 18:56

Re: Aircrack-ng 1.1 would be nice
 
good lord.
okay to run the aircrack-ng i packaged for some reason you have to type "root" first, and not "sudo gainroot". Of course it works fine with iw, I made it a dependancy because airmon-ng can use that to start monitor mode automatically, some scripts depend on a working airmon-ng. I'm doing you a favor. Is there some difficulty installing iw? It's got to be in some obvious repo as I installed it fine.

mr_pingu 2011-04-27 19:26

Re: Aircrack-ng 1.1 would be nice
 
No not at all, just installed your deb fine and it works using root instead of sudo gainroot. Proof

Code:

Mr Pingu:/home/user/MyDocs# air
airbase-ng              airmon-ng
aircrack-ng            airodump-ng
airdecap-ng            airodump-ng-oui-update
airdecloak-ng          airolib-ng
airdriver-ng            airserv-ng
aireplay-ng            airtun-ng

But I dont get why the deb here: http://talk.maemo.org/showthread.php...ht=1.1&page=35

conflicts with iw again.
I tried dpkg -i and got this returned
Code:

Mr Pingu:~# cd /home/user/MyDocs/
Mr Pingu:/home/user/MyDocs# dpkg -i aircrack-ng_1.1-1_armel.deb
dpkg: regarding aircrack-ng_1.1-1_armel.deb containing aircrack-ng:
 iw conflicts with aircrack-ng (<< 1:1.0~rc2-1)
  aircrack-ng (version 1.1-1) is to be installed.
dpkg: error processing aircrack-ng_1.1-1_armel.deb (--install):
 conflicting packages - not installing aircrack-ng
Errors were encountered while processing:
 aircrack-ng_1.1-1_armel.deb


Creamy Goodness 2011-04-27 19:35

Re: Aircrack-ng 1.1 would be nice
 
Oh, so you're saying the smaller deb without wesside-ng works, but the bigger one doesn't? I'll try to confirm that.
-edit-
i just used dpkg to install the bigger deb, it gave a warning that it's downgrading (my bad) but it seems to work fine still. Now I see the file names are a bit different, you were using the one without wesside anyways. My iw version is 0.9.19 btw.

mr_pingu 2011-04-27 19:37

Re: Aircrack-ng 1.1 would be nice
 
yes you got it ;)

codecxbox 2011-04-27 22:23

Re: Aircrack-ng 1.1 would be nice
 
Im going to start from scratch as root. Hope it works..
If this works, then it would be great to package IW and Creamy's working aircrack deb in a single file and create a sticky.

root

apt-get install iw

Installs iw 0.9,19

Tested iw

"iw info wlan0"

"Interface wlan0
ifindex 3
type managed"

Renaming aircrack 1.1 size 425k to aircrack-ng-1.deb
Renaming aircrack 1.1 size 587k to aircrack-ng-2.deb

Both installed OK as root

Testing wifite.py , starts ok needs macchanger, cowpatty, etc.

Testing Faircrack as user 1 test
association successful AID: 1
Airdump is not capturing packets

Testing Faircrack as user 2 test
association successful AID: 1
Airdump is not capturing packets

using a android phone kickstarted airodump captures OK

I have reached to the conclusion that packet injection doesn't work, I managed to crack my own router with a active client , but not alone.
this conclusion is just my experience, Ill be trying aircrack by the CLI next and post my results.

Creamy Goodness 2011-04-27 23:04

Re: Aircrack-ng 1.1 would be nice
 
Quote:

Originally Posted by mr_pingu (Post 996395)
yes you got it ;)

I looked at the control file for iw and it's saying that it conflicts with aircrack-ng if the version is earlier than 1.0r2
I would guess you just have to uninstall the 1.0 version before trying to installl 1.1
Other thing it could be is that I forgot to update the version number in the changelog, and my "1.1" version is identifying itself as 1.0, but I would have been unable to install it in that case. Sorry I can't build another one at the moment, I reinstalled Windows and need to set up the build environment again.

kingoddball 2011-04-27 23:35

Re: Aircrack-ng 1.1 would be nice
 
Why can't you download and install AirCrack 1.1 in Easy Debain (has full repo access/ARMEL) and just pull out the files and replace what you need (just like what VI_ said)

codecxbox 2011-04-27 23:37

Re: Aircrack-ng 1.1 would be nice
 
Creamy, both of your aircrack debs installed fine.

Ok heres the lowdown

1-Install iw from the maemo repos. It will auto remove aircrack 1.0

2-Download this package and install any of these 2 aircrack 1.1 debs AS ROOT, not sudo gainroot.

http://www.mediafire.com/download.php?xkcc2dzgkbd7o97

3-test faircrack.

codecxbox 2011-04-27 23:49

Re: Aircrack-ng 1.1 would be nice
 
Quote:

Originally Posted by kingoddball (Post 996502)
Why can't you download and install AirCrack 1.1 in Easy Debain (has full repo access/ARMEL) and just pull out the files and replace what you need (just like what VI_ said)

That would be a great alternative, I just wanted to make this work in Maemo for those who dont have Easy Debian installed. We still have to load the wl-1251 drivers before using aircrack in Easy Debian?

codecxbox 2011-04-28 01:13

Re: Aircrack-ng 1.1 would be nice
 
Running Wifite.py in cli mode, it captured 272786 IVS in -p0841 mode, it didn't crack the WEP encryption.

Just in case anybody wants to try it, you'll need macchanger, which is available in the maemo's repos.

Dont run it in GUI, because the red button wont appear on the N900 screen. (Landscape view fault).

codecxbox 2011-04-28 02:20

Re: Aircrack-ng 1.1 would be nice
 
Wifite cracked my WEP router via chop-chop, with another client connected to the AP, around 12 minutes.

It only worked as ROOT and loading the wl-1251 LXP drivers.

I believe chop-chop is like kismet, so it really didn't crack by packet injecting.

Will try again without any active client.

Mentalist Traceur 2011-04-28 02:25

Re: Aircrack-ng 1.1 would be nice
 
If anyone's interested, I compiled aircrack-ng just a few months ago (around the time / just before) Creamy compiled his. I don't do any of this .deb stuff, but I can provide a .tar file that you unpackage into /, which will place the aircrack binaries into /opt/[s]bin/ and will place their respective symlinks into /[s]bin/. (In noob terms, it's optified and thus doesn't take rootfs space. Not that aircrack takes up that much space anyway, but yeah.) It's also compiled with stuff like airolib-ng and experimental stuff that's part of the aircrack-ng svn code base. I think everyone should be fine with Creamy's package, but might as well toss the offer out.

It's less fancy, but you completely bypass all the apt and dpkg stuff like dependencies. Just apt-get install iw, and then unpack this. Or unpack and then install iw. Doesn't really matter I believe.

I was tempted a while ago to ask to be the maintainer of the aircrack-ng package, but I don't know what I'm doing well enough with this whole .deb packaging thing, so that's gonna have to wait.

codecxbox 2011-04-28 03:22

Re: Aircrack-ng 1.1 would be nice
 
That would great! The main purpose of all this is to find out what really works or does not work around aircrack.
Until now, I know that faircrack and wifite works passively. Now looking at the Jdownloader thread, I will install the Java package for embedded systems and experiment with WepGrima. i know its old , but every alternative for a easy aircrack experience is a plus.
Ill be looking forward to your compile..

Mentalist Traceur 2011-04-28 03:44

Re: Aircrack-ng 1.1 would be nice
 
Bah, it's taking a while because the file need to be compressed enough to fit inside the upload limit. I'll post again when I've gotten it compressed enough.

Mentalist Traceur 2011-04-28 04:42

Re: Aircrack-ng 1.1 would be nice
 
5 Attachment(s)
Sorry about the delay and the multiple files. It was either this or lzma compression, which is slower than the gzip to decompress on N900, and isn't one of the supported formats for upload on talk.maemo.org, so you'd have to deal with file renaming. But either way the file-size max for uploads was so small that I had to split it like this. Unpack all of these as root, to the root ( / ) directory. I'm not sure what happens if you unpack a symbolic link to something that doesn't exist yet, so it might be best to unpack the aircrack_sbinln file after the other aircracksbin* files.

Attachment 19670
Attachment 19671
Attachment 19672
Attachment 19673
Attachment 19674

For those who don't know how to use tar, you'd want to use "tar -xzf /path/to/file/you're/unpacking" for these. The x unpacks, the z tells it to run it through gzip first to decompress, and f tells it what file to extract from. I don't remember how to unpack off the top of my head to a different directory, so cd'ing to / before decompressing is how I would do it.

- Edit -

At the same time, I'm unsure if this will at all work better for anyone that Creamy's deb does. *Shrug*

Creamy Goodness 2011-04-28 05:40

Re: Aircrack-ng 1.1 would be nice
 
Quote:

Originally Posted by codecxbox (Post 996555)
That would great! The main purpose of all this is to find out what really works or does not work around aircrack.
Until now, I know that faircrack and wifite works passively. Now looking at the Jdownloader thread, I will install the Java package for embedded systems and experiment with WepGrima. i know its old , but every alternative for a easy aircrack experience is a plus.
Ill be looking forward to your compile..

huh? wifite works fine with injection for me. I've cracked many WEP networks with it anyways.

codecxbox 2011-04-28 23:06

Re: Aircrack-ng 1.1 would be nice
 
Quote:

Originally Posted by Creamy Goodness (Post 996580)
huh? wifite works fine with injection for me. I've cracked many WEP networks with it anyways.

Then we must have different installs. I just set up a WEP enabled AP without any clients connected to it.
Wifite started as arp replay and never got a IVS
after 7 minutes, Wifite started as -0841 and only collected 12 IVS.
Perhaps it would possible to indicate your setup and how you engage Wifite from start?

kingoddball 2011-04-28 23:09

Re: Aircrack-ng 1.1 would be nice
 
Did you set it to inject?
If it's only capturing it will be too slow.

You need WL1 drivers.

codecxbox 2011-04-28 23:27

Re: Aircrack-ng 1.1 would be nice
 
Are these drivers that inject are those that you have to start as user doing sh load.sh and then it says

" Custom wl1251 module loaded (with injection) :) "

then those I have and use

uname -r

2.6.28.10power46-wl1

pretty fills the requirements i guess

codecxbox 2011-04-28 23:34

Re: Aircrack-ng 1.1 would be nice
 
The best script I have found for Ubuntu is minidwep-gtk. This one really works almost perfect, its a shame the author never released the source, although its really a Zenity GTK Gui.

codecxbox 2011-05-04 03:27

Re: Aircrack-ng 1.1 would be nice
 
OK, great news for all with packey injection problems

After updating the kernel to Pali's ver47 pushed on extra repos, I can now say that packet injection truly works.

After updating the kernel, I once more did my usual method:
Xterm, sh load.sh, sh.launch.sh,etc.

Tried to attack a shared key WEP AP, but it was taking too long and didnt have enough battery,

Again I attacked a open WEP enabled AP (a Thomson SpeedTouch) and airodump reported that the AP did not have any WIFI clients attached to it. So I proceeded and after 1 minute of 0 ARP Replays, suddenly the AP responded and ARPs were downloading in hundreds, Yay!!

Got the key in around 4 minutes WITHOUT restarting any of the aircrack modules.

Will test again to be sure shortly.

Estel 2011-05-13 10:12

Re: Aircrack-ng 1.1 would be nice
 
Mentalist, i strongly encourage You to become maintainer of aircrack-ng. It's little frustrating to have such useful packages in so many places outside of repos, or even worse, outdated version on repo, then better one available for months on forum...

I'm not complaining, of course choose is up for You, but i would LOVE to see using repos as a habit for creative people ;)

Mentalist Traceur 2011-05-13 13:28

Re: Aircrack-ng 1.1 would be nice
 
Quote:

Originally Posted by Estel (Post 1005403)
Mentalist, i strongly encourage You to become maintainer of aircrack-ng. It's little frustrating to have such useful packages in so many places outside of repos, or even worse, outdated version on repo, then better one available for months on forum...

I'm not complaining, of course choose is up for You, but i would LOVE to see using repos as a habit for creative people ;)

Applying for being the maintainer is on my list of things to do - I just don't have any good idea yet of how to properly package .deb files or use the maemo.org repository autobuilder, and I want to learn that before I go applying for maintainer status.

Creamy Goodness 2011-05-13 15:55

Re: Aircrack-ng 1.1 would be nice
 
You must... become the code

Estel 2011-05-14 05:04

Re: Aircrack-ng 1.1 would be nice
 
Mentalist, maybe it is good idea to request wiki article from gurus - about .deb packaging, etc?

Mentalist Traceur 2011-05-14 05:52

Re: Aircrack-ng 1.1 would be nice
 
Quote:

Originally Posted by Estel (Post 1005930)
Mentalist, maybe it is good idea to request wiki article from gurus - about .deb packaging, etc?

Well, .deb packaging isn't hard, there's tutorials online, and I have a vague idea of how to do it. And if I had the time, digging through Maemo.org wiki pages and threads of putting package sources through the auto-builder wouldn't be hard; it's just time is horribly limited, I have countless projects at any given time, etc. So I haven't gotten around to it.

Edit: I've tried to start getting myself off my *** in this regard by submitting a request for upload privileges to the extras-devel repository. If that goes through I can see if I can contact the current maintainers of aircrack-ng, and hopefully take over the maintainer-ship of that project on garage and the repository (or maybe me contacting them would just make them motivated to work on the package again. *Shrug*).

Oh, while I remember: I'd like to publicly thank Hawaii, without whom I would've never compiled aircrack-ng from a more recent version of code in the first place.

Edit 2: Submitted maintainer request and sent an email to the previous maintainer. (I'm starting to read documentation on the whole packaging and uploading process; will continue as time permits. I'll do my best to get a more recent aircrack-ng version into the repositories in under a couple of weeks, assuming I am able to get maintainer status by then.)

Mentalist Traceur 2011-05-17 23:09

Re: Aircrack-ng 1.1 would be nice
 
If anyone's interested in this, as of a couple of days ago, backseatgreg (the username of the previous maintainer of the aircrack-ng port) said he's giving me the lead on maintaining the aircrack-ng package. I'm still showing up as "Pending Maintainer Requests" in the aircrack-ng package link here:
http://maemo.org/packages/view/aircrack-ng/
But the same is the case with Pali and the power-kernel (I.E. he can upload new versions but he's not showing up as the maintainer, but as a pending maintainer). And I suspect that backseatgreg probably let me into it as he said he was going to, as I'm now able to access the garage page for aircrackn-ng is admin.

And yesterday early morning I got the requested invite sent to me to get upload permissions to devel. So as soon as I get the chance to finish reading through the documentation and have the time, I'll try to push a new aircrack-ng version to the repositories. Whenever that happens, if the auto-builder builds it right, I'll post a new thread at that time.

Estel 2011-05-20 16:33

Re: Aircrack-ng 1.1 would be nice
 
Thank You very much for this info - please also provide link to this new thread here, allright? I think that original creator of this thread could also update #1 post and title.

Mentalist Traceur 2011-05-21 19:18

Re: Aircrack-ng 1.1 would be nice
 
Okay, so as much as I don't like just posting updates to the effect of "Still working on it, updates are still coming eventually, no concrete estimate available, etc", I also know people like hearing updates and I don't want to be the kind of dev/maintainer that's mostly silent and doesn't try to keep a rapport going with users.

So here's my attempt to keep you guys updated on my horribly slow progress:

I've spent the occasional bits of free time that I have reading through the maemo.org documentation and stuff, though I wouldn't say I fully know right now what the hell I should be doing. I downloaded the latest (today's) aircrack-ng development SVN sources, and the sources from the maemo.org garage page (this would be sources for the version sitting in devel right now afaik). The main idea being I wanted to see what I could learn what I needed to do to make the latest source auto-builder compatible by looking at what the current port's sources had that the upstream ones didn't. Near as I can tell that's just a debian/ folder with a bunch of stuff.

Honestly, my first plan of action is to see what happens if I just toss the debian folder into the 1.1 sources and... go from there depending.

I'm not going to have access to internet (or even large amounts of electricity) for about a day starting later today, so I doubt you'll see any updates to aircrack-ng before Monday at the earliest. I also encourage everyone to not get their hopes up TOO high just yet. Keep in mind that the first couple of -devel updates that I push out might end up not optified (in spite of the optified-ness of the currently in-devel version), or might otherwise turn out somehow messy/broken, while I figure out the ropes of this packaging thing. (That's what -devel is for of course, BUT I know a lot of end-users sit around in -devel nowadays anyway, so fair warning.)

@Estel - yes, I will provide a link here when the time comes to post a new thread.

Mentalist Traceur 2011-05-24 23:20

Re: Aircrack-ng 1.1 would be nice
 
First attempt at update uploading went through the auto-builder... I *THINK*. Thread here. http://talk.maemo.org/showthread.php?t=73417


All times are GMT. The time now is 02:04.

vBulletin® Version 3.8.8