The Following 3 Users Say Thank You to jd4200 For This Useful Post: | ||
![]() |
2011-01-14
, 01:43
|
Posts: 3,664 |
Thanked: 1,530 times |
Joined on Sep 2009
@ Hamilton, New Zealand
|
#72
|
![]() |
2011-01-14
, 02:18
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#73
|
would be nice if this wasn't running with powerkernel. I would prefered stock kernel instead.
![]() |
2011-01-14
, 02:27
|
|
Posts: 451 |
Thanked: 424 times |
Joined on Apr 2010
@ England
|
#74
|
Why? Power Kernel is stock kernel + happiness + sunshine + rainbows + cure for AIDS/cancer/Parkinsons + solving world hunger.
jd4200: I don't have any suggestions right off the top of my head, other than using "lsmod | grep [name of module]" to check if a certain module is loaded, instead of saving the state inside a file (less writes to flash chip, and avoids your sudden-reboot/shutdown/battery-flies-out problem).
![]() |
2011-01-14
, 02:28
|
Posts: 3,664 |
Thanked: 1,530 times |
Joined on Sep 2009
@ Hamilton, New Zealand
|
#75
|
![]() |
2011-01-14
, 08:15
|
Posts: 435 |
Thanked: 197 times |
Joined on Feb 2010
|
#76
|
Nothing 'out there' ever reports itself as having an 192.168.something.something address to the outside world.
The easy way to know what your 'outside' IP is is by going to www.whatismyip.com or something like that.
![]() |
2011-01-14
, 09:45
|
Posts: 539 |
Thanked: 518 times |
Joined on May 2010
@ nanaurbusiness
|
#77
|
My bash scripting skills are still in the early stages, but I created two scripts which are executed by QueenBeecon widgets to put the card in and out of monitor mode, and loads and unloads the drivers (just in case anyone else finds them useful):
Clicking widgets changes the states, screeny of it:
The driver loader/unloader is hereCode:#!/bin/sh # You'll either need execute this script as root, or allow user to # use ifconfig/iwconfig in the sudoers file (which is my method) mode=$(/sbin/iwconfig wlan0 |grep Mode |awk -F : '{print $2'} |awk '{print $1}') if [[ "$mode" == "Managed" ]]; then sudo /sbin/ifconfig wlan0 down sudo /sbin/iwconfig wlan0 mode Monitor sudo /sbin/ifconfig wlan0 up echo "Monitor" exit 1 elif [[ "$mode" == "Monitor" ]]; then sudo /sbin/ifconfig wlan0 down sudo /sbin/iwconfig wlan0 mode Managed sudo /sbin/ifconfig wlan0 up echo "Managed" exit 2 else echo "state error" exit 127 fi
Anyone have any tips on how to improve it?
As the drivers are unloaded on reboot, I had to use a "state_file" to keep track of whether they are loaded or not during up-time, and before a reboot or shutdown occurs the state_file is set back to "unloaded".
(Not sure what would happen if the phone loses battery power and turns off though)
![]() |
2011-01-14
, 17:50
|
|
Posts: 451 |
Thanked: 424 times |
Joined on Apr 2010
@ England
|
#78
|
Fi
That is indeed an interrested desktop, is that all QueenBeecon? If not, would you mind sharing the name of the widget? Particulary interrested in wireless mode and inject modules.
Really nice work. Do I just have to put the code into the command field of a new QBWidget or do I need to create a script and let QBW simply start it.
thx in advance,
..::J4ZZ::..
Import which ever of the files you want below. Here's how. QueenBeecon config for showing IP QueenBeecon config for status of injection modules QueenBeecon config for status of interface (monitor/managed)
Interface status For this to work you need to give your self permissions to use iwconfig/ifconfig to change the interface properties which normally require root privallages. So add the following to /etc/sudoers: user ALL = NOPASSWD: /sbin/ifconfig user ALL = NOPASSWD: /sbin/iwconfig You must edit that file with "vi" (use the command visudo). Don't use any other text editor, they can screw with the file, seriously messing things up.
Load/Unload modules. Don't bother with this one yet, it's not working right. I'll update it when I figure it out. For this one to work you have to create a "state_file" to keep track of whether the modules are unloaded or loaded. So, create a new file called "state_file" in /tmp/ (nano /tmp/state_file), and then write "Unloaded" into the file and save it. (If you have them loaded, the write "Loaded" into it). To make sure this file is recreated on reboot, add the following: echo "Unloaded" > /tmp/state_file to this files: /etc/event.d/hildon-desktop
![]() |
2011-01-14
, 17:59
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#79
|
![]() |
2011-01-14
, 18:25
|
|
Posts: 451 |
Thanked: 424 times |
Joined on Apr 2010
@ England
|
#80
|
If you put the state_file to into /tmp/whatever it won't get saved to disk (well, unless it's swapped, then it's saved to the swap partition), and then you're avoiding a decent amount of flash wear. You can then also always put a script in /etc/init.d/ or /etc/event.d/ that would create the state_file, with the value of 'unloaded' upon ever boot, so that you don't have conflicts between surviving state_files left over from unexpected system crashes/power-offs. (actually, you can do the latter without the former, to set the value of state_file to unloaded at boot.)
![]() |
Tags |
aircrack, aircrack-ng, tutorial |
|
Clicking widgets changes the states, screeny of it:
Anyone have any tips on how to improve it?
As the drivers are unloaded on reboot, I had to use a "state_file" to keep track of whether they are loaded or not during up-time, and before a reboot or shutdown occurs the state_file is set back to "unloaded".
(Not sure what would happen if the phone loses battery power and turns off though)
Last edited by jd4200; 2011-01-14 at 01:44.