README.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. ===========================================================================
  2. ____ ____ _ _ _ _
  3. | _ \ _ _| _ \ ___ __ _| || | / \ _ __ __ _ ___| |__ ___
  4. | |_) | | | | | | |/ _ \ / _` | || |_ / _ \ | '_ \ / _` |/ __| '_ \ / _ |
  5. | __/| |_| | |_| | (_) | (_| |__ _/ ___ \| |_) | (_| | (__| | | | __/
  6. |_| \__, |____/ \___/ \__, | |_|/_/ \_\ .__/ \__,_|\___|_| |_|\___|
  7. |___/ |___/ |_|
  8. Apache web logs sneaker - 2016/2020 - by psy
  9. ===========================================================================
  10. ###############################
  11. # Project info
  12. ###############################
  13. Web: https://pydog4apache.03c8.net/ [https://03c8.net]
  14. ###############################
  15. # Summary
  16. ###############################
  17. PyDog4Apache is an Apache web logs sneaker.
  18. With this tool you can search for specific keywords (such as: government, police...)
  19. on Whois description of the IPs of your website visitors by -automagically- analyzing
  20. Apache logs provided (you can set folders of logs to manage all your projects).
  21. Also you can generate a report with results or send them to a list of email recipients
  22. like an alert.
  23. ###############################
  24. # Installing
  25. ###############################
  26. PyDog4Apache runs on many platforms. It requires Python (3.x.y) and the following libraries:
  27. python3-pip - Python package installer
  28. ipwhois (0.10.3) - Retrieve and parse whois data for IPv4 and IPv6 addresses.
  29. On Debian-based systems (ex: Ubuntu), run:
  30. sudo apt-get install python3-pip && pip3 install ipwhois==0.10.3 --user
  31. Source libs:
  32. * Pypi-ipwhois: https://pypi.python.org/pypi/ipwhois/
  33. ###############################
  34. # HowTo
  35. ###############################
  36. Usage: pydog4apache.py [options]
  37. Options:
  38. --version show program's version number and exit
  39. -h, --help show this help message and exit
  40. -u, --update check for latest stable version
  41. -v, --verbose active verbose output
  42. *Reporting*:
  43. -r FILE generate file output with 'visitants'
  44. -n EMAILS notify via email (foo@email.net,bar@email.org,...)
  45. ###############################
  46. # Examples
  47. ###############################
  48. Verbose:
  49. python3 pydog4apache -v
  50. Generate report file:
  51. python3 pydog4apache -r 'visitants.txt'
  52. Notify results via email to some recipients:
  53. python3 pydog4apache -n='root@localhost,foo@email.org,bar@email.net'
  54. Combine options:
  55. python3 pydog4apache -v -r 'visitants.txt' -n 'epsylon@riseup.net'
  56. Launch it as daemon (notify via email when finish):
  57. python3 pydog4apache -n 'epsylon@riseup.net' &
  58. ###############################
  59. # Updating
  60. ###############################
  61. PyDog4Apache implements an option to update the tool to the latest stable version.
  62. This feature can be used only if you have cloned it from GitHub respository.
  63. To check your version you should launch:
  64. python3 pydog4apache --update
  65. This will update the tool automatically removing all files from old package.
  66. ###############################
  67. # Timelog
  68. ###############################
  69. --------------------------
  70. 08.01.2020 : v.0.2
  71. --------------------------
  72. 11.04.2016 : v.0.1b
  73. --------------------------
  74. ###############################
  75. # Contribute
  76. ###############################
  77. To make donations use the following hash:
  78. - Bitcoin: 19aXfJtoYJUoXEZtjNwsah2JKN9CK5Pcjw
  79. ############