b0nd
05-26-2011, 10:26 AM
Hi Friends,
I am working on the concept for couple of days and believe I've coded >50% of what I intended to automate. So posting the code and concept here to get more ideas, feedbacks and suggestions.
Q. Why another Log Wiper when already there are many?
Ans: Just for fun! The most effective ones are already there and have been coded in 'C'. I am just playing with BASH to learn it more. Moreover the existing log wipers coded in BASH, which I could find over net, are not good enough.
Ok, the following are the features I've already implemented:
1. Delete a particular IP from log files
2. Spoof a particular IP in log files
3. Delete the log entries for the web back door shell from web logs e.g. the case when you first access your web back door and then initiates a back connect shell from it.
4. Restore the time stamping for all the log files which have been accessed and edited. ctime sucks ;)
5. Get some basic system info
6. Verify-IP: To inform user if by mistake he has entered invalid IP (It includes 3 different checks on user input)
7. Exit feature from almost every part of code. Can not perform Ctrl + C as that would kill the shell itself
Pending features and issues:
1. Erase user activity logs from logs files (wtmp, utmp, lastlog etc). lastlog sucks ;)
2. Stop logging feature
3. Implement a "smart" function which would take input from a text file and proceed without user interaction
4. May be a feature that would crawl whole system to find back door shells uploaded by other attackers
5. Dunno the way to restore time stamping for ctime. It gets modified whenever there is some change in inode entry etc. of file or if the file itself has been edited.
6. May be some features to let user know the different kind of security tools implemented on server e.g. IPtables, SElinux, AV etc.
7. ...............
Lot of scaffolding is there as I am still working on it.
Feel free to play with the script, it won't harm your machine as you can 'exit' from it anytime.
Please post some ideas, suggestions, feedbacks... and if free enough, then chip in to work together as 1+1=11
Rgds
PS: Delete the trailing .txt extension.
I am working on the concept for couple of days and believe I've coded >50% of what I intended to automate. So posting the code and concept here to get more ideas, feedbacks and suggestions.
Q. Why another Log Wiper when already there are many?
Ans: Just for fun! The most effective ones are already there and have been coded in 'C'. I am just playing with BASH to learn it more. Moreover the existing log wipers coded in BASH, which I could find over net, are not good enough.
Ok, the following are the features I've already implemented:
1. Delete a particular IP from log files
2. Spoof a particular IP in log files
3. Delete the log entries for the web back door shell from web logs e.g. the case when you first access your web back door and then initiates a back connect shell from it.
4. Restore the time stamping for all the log files which have been accessed and edited. ctime sucks ;)
5. Get some basic system info
6. Verify-IP: To inform user if by mistake he has entered invalid IP (It includes 3 different checks on user input)
7. Exit feature from almost every part of code. Can not perform Ctrl + C as that would kill the shell itself
Pending features and issues:
1. Erase user activity logs from logs files (wtmp, utmp, lastlog etc). lastlog sucks ;)
2. Stop logging feature
3. Implement a "smart" function which would take input from a text file and proceed without user interaction
4. May be a feature that would crawl whole system to find back door shells uploaded by other attackers
5. Dunno the way to restore time stamping for ctime. It gets modified whenever there is some change in inode entry etc. of file or if the file itself has been edited.
6. May be some features to let user know the different kind of security tools implemented on server e.g. IPtables, SElinux, AV etc.
7. ...............
Lot of scaffolding is there as I am still working on it.
Feel free to play with the script, it won't harm your machine as you can 'exit' from it anytime.
Please post some ideas, suggestions, feedbacks... and if free enough, then chip in to work together as 1+1=11
Rgds
PS: Delete the trailing .txt extension.