LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-29-2018, 05:52 AM   #1
blason
Member
 
Registered: Feb 2016
Posts: 122

Rep: Reputation: Disabled
IP addresss aggregrator script perl/bash?


Hi There,

I am looking for any solution or a script may be in perl/bash or python which could aggregrate the IP addresses and provide me in file?

Well the idea here is I have deployed network based honeypot which is receiving numerous attacks and thus have different IP addresses. Now one IP addresses is hitting multiple ports and those are being logged into file. However is there way i could aggregrate those and move to other file every 5 mins or as soon as it hits my honeypot the IP address will be logged into other file which should be uniq?

Please let me know of may ideas?
 
Old 01-29-2018, 06:00 AM   #2
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
you should post examples, so ppl know how to parse the logs.

EDIT: forgot to say that i ran glastopf on my network. it were ok honeypot.

Last edited by //////; 01-29-2018 at 06:41 AM.
 
Old 01-29-2018, 10:41 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
fail2ban is python and quite good at this.

Please let us know.

Last edited by Habitual; 01-29-2018 at 10:47 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using c++/perl in bash script? rmcateer Linux - Server 8 01-30-2015 06:41 AM
How to kill some runnin perl script from bash script? postcd Linux - General 2 05-01-2014 06:00 AM
passing variable from bash to perl in a bash script quadmore Programming 6 02-21-2011 04:11 AM
To rename files in a directory should I use Bash script or a Perl Script ? jamtech Programming 7 01-22-2008 11:25 PM
Help: Perl or Bash Script help embsupafly Programming 1 08-11-2005 06:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration