OWT was kind enough to help me with some information. He asked me to post a script that will put your system into Stealth mode. The goal of the script will be to stop all logging and history files then restore them after you no longer need to be stealthy :)
I will do this thread pretty much the same way as I did the "My first Hack". I will probably do it in 2 to three comments so you all can have the code in sections and customize it the way you need, and even for doing other things. I know I will use it as a base code..
Below is my StealthMode script outline it has been tested and runs.:
#! /usr/bin/perl
print "hello Master\n";
# I love that part my computer calls me master
print " I am will be handeling Stealth Mode for you\n";
print "what process do you wish to run, options = pre or post\n";
$name = <STDIN>;
chomp $name;
if ($name eq pre){
print "yes Master setting up Stealth\n";
}
#system (incert first command here) testing and debuging before I #acutally run a bash command
elsif ($name eq post){
print "yes Master exiting stealth mode resetting system\n";
}
#systm (1'st bash here)}
else {
print "Oh my fat fingered Master #try again\n";
}
#I will add a loop here to the first If, have to sudy it tho
#not worried about exiting the loop and contol c will do it
print "hello Master\n";
# I love that part my computer calls me master
print " I am will be handeling Stealth Mode for you\n";
print "what process do you wish to run, options = pre or post\n";
$name = <STDIN>;
chomp $name;
if ($name eq pre){
print "yes Master setting up Stealth\n";
}
#system (incert first command here) testing and debuging before I #acutally run a bash command
elsif ($name eq post){
print "yes Master exiting stealth mode resetting system\n";
}
#systm (1'st bash here)}
else {
print "Oh my fat fingered Master #try again\n";
}
#I will add a loop here to the first If, have to sudy it tho
#not worried about exiting the loop and contol c will do it
0 comments:
Post a Comment