paint-brush
Where Do Hackers Live: A Deep Dive into My Website's Security Logsby@jeremymorgan
1,210 reads
1,210 reads

Where Do Hackers Live: A Deep Dive into My Website's Security Logs

by jeremymorgan4mFebruary 12th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

With a bit of Linux command line kung fu, some Golang, and Google sheets, I was able to get a pretty good idea of where the attacks are coming from. I'm using CentOS to host my site, so I checked out /var/log/secure. This log is where authentication logs are stored on my server. I wanted to extract the IP address of attackers from this file. It will do this for all of the messages I have in my "badstrings" list. It then dumps the IP into a temp.txt file.

Company Mentioned

Mention Thumbnail
featured image - Where Do Hackers Live: A Deep Dive into My Website's Security Logs
jeremymorgan HackerNoon profile picture
jeremymorgan

jeremymorgan

@jeremymorgan

Tech blogger, author, overall geek. Love tech and love writing about it.

Learn More
LEARN MORE ABOUT @JEREMYMORGAN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

jeremymorgan HackerNoon profile picture
jeremymorgan@jeremymorgan
Tech blogger, author, overall geek. Love tech and love writing about it.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Minds
Nitter
Koyu
Runonflux
Social
Trom
Poast