LuciferAviSonicX

Firewall Snort

Oct 30th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. Firewall
  2. --------
  3. It act as a filter, which prevents malicious things, packets, querries from entering in the network or out going from the network.
  4. It is just like the filter while we pour tea in the cup. As filter stops tea residue from entering the cup, same way the firewall helps in stoping the malicious content from entering the device.
  5. Firewall is of both type:
  6. 1. Software
  7. They are the software which is used inside the same device which is being used by the user. We can configure the inbound (incoming traffic) and outbound (outgoing traffic) as we like to configure.
  8. 2. Hardware
  9. There are some specific devices, which are very sasta and halka, which works same as that of software firewall but.... they can be places anywhere in the world. They just looks like the router and switches and can look like our CPU.
  10.  
  11. Windows Firewall with Advance Security
  12.  
  13. Mod Security
  14. Is is one of the firewall, which can be used as either of the software or as the hardware.
  15.  
  16.  
  17. https://www.digitalocean.com/community/tutorials/how-to-set-up-modsecurity-with-apache-on-ubuntu-14-04-and-debian-8
  18.  
  19. cd /etc/apache2/sites-available/
  20. ls ---> 000-default.conf
  21. sudo nano 000-default.conf
  22. ---> ProxyPass / http://172.16.79.159/
  23. ---> #to send request to IP 172.16.79.159
  24. ---> ProxyPassReverse / http://172.16.79.159/
  25. ---> #To get the response from 172.16.79.159
  26. sudo service apache2 restart
  27.  
  28. IPS --> Instusion Prevention System
  29. When My IDS detects the intrusion, this IPS start taking precautions as per feeded what to do by the user.
  30.  
  31. IDS --> Instusion Detection System
  32. When some one tries to intrude into my system, them IDS start its working and Detects the intrusion and makes an alert. so that required steps could be taken on time.
  33.  
  34.  
  35. When AVAST antivirus scans the file, if it detects any malicious file, then it makes an alarm --> "WArning a virus has been detected"... Then it asks for the coutermeasure to take.
  36. "Delete this file"
  37. "Quarantine it for 45 days"
  38.  
  39.  
  40. IPS & IDS
  41. -----> SNORT
  42.  
  43. wget https://www.snort.org/downloads/snort/daq-2.0.6.tar.gz
  44.  
  45. wget https://www.snort.org/downloads/snort/snort-2.9.11.tar.gz
  46.  
  47. tar xvfz daq-2.0.6.tar.gz
  48.  
  49. cd daq-2.0.6
  50. ./configure && make && sudo make install
  51.  
  52. tar xvfz snort-2.9.11.tar.gz
  53.  
  54. cd snort-2.9.11
  55. ./configure --enable-sourcefire && make && sudo make install
  56.  
  57.  
  58. Log Analysis
  59. =============
  60.  
  61. IP AuthenticationName TimeStamp RequestURL 200|404 BYtesTransfered ReferalURL UserAgent
  62.  
  63.  
  64. 127.0.0.1 - - [08/Aug/2017:17:22:03 +0530] "GET /dvwa/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36"
  65.  
  66.  
  67. 127.0.0.1 ---> IP to which we are visiting
  68.  
  69. [08/Aug/2017:17:22:03 +0530] --> Date and time at which log is been generated
  70.  
  71. "GET /dvwa/ HTTP/1.1" ---> Which request + sub folder/sub directory/path HTTP Version
  72.  
  73. 302 --> Request error
  74. 1xx Informational responses
  75. 2xx Success
  76. 3xx Redirection
  77. 4xx Client errors
  78. 5xx Server errors
  79.  
  80. "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36"
  81.  
  82.  
  83.  
  84.  
  85.  
  86. 127.0.0.1 - - [08/Aug/2017:17:22:03 +0530] "GET /dvwa/dvwa/js/dvwaPage.js HTTP/1.1" 200 775 "http://127.0.0.1/dvwa/setup.php" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36"
  87.  
  88.  
  89. 775 --> Packet Size which is being sent
  90.  
  91.  
  92.  
  93. 172.16.79.132 - - [30/Oct/2017:11:30:50 +0530] "GET /dvwa/vulnerabilities/sqli/?id=1%27+/*!50000union*/+/*!50000select*/%201,/*!50000table_name*/%20from%20/*!50000information_schema.tables*/--+&Submit=Submit HTTP/1.1" 200 36981 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
  94.  
  95.  
  96. Proxychain to evade detection in kali linux
  97. https://codingsec.net/2016/05/use-proxychains-evade-detection-kali-linux/
Add Comment
Please, Sign In to add comment