Giter Club home page Giter Club logo

psadify's People

Contributors

disloops avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

psadify's Issues

Ensure number of rows to iterate is an integer

I came across the following situation: When PSAdify is started and there has been no attackers logged to far, the python script fails in L305, because the referenced slice top_ports[:rows/2] does not use an integer, if the array is empty. One could think so, because len(top_ports) is 0 and 0/2 is 0 again. However, it does not work like that.

There are actually two occurances of the rows/2 expression:

for port in top_ports[:rows/2]:

for port in top_ports[rows/2:rows]:

A simple patch would be to replace rows/2 by rows//2. The latter floors the result to the next lower integer.

Thank you for the cool tool. ๐Ÿ‘

other port logs

In tracking down an IP address from a series of enties in a NginX error log, I found your site. I left a reduced snippet on the RPi PSAD blog page, they were from the same address & "compaines" on your Top 10 lists. They were interesting because they showed URLS that allow backdoor entry via a web server (some of them are silly - poor security).

Can PSAD corelate more than just IPTables logs.

BTW I use RPi(s) with Alpine Linux, and RPiOS with Alpine Docker images

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.