hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

DJVASTVASTY2K
Hello M8's

I am looking for the following below>
Any help is greatly appreciated.

I have tried search on forum but no luck there.
Tried google but nothing sad.gif

So any help is greatly appreciated

Many Thanks

Best Regards

Adam

Vast Gsm

#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>

#include <openssl/ssl.h>
#include <openssl/rsa.h>
#include <openssl/x509.h>
#include <openssl/evp.h>
The-X
compile it on linux / unix or try cygwin

i think this code was not written for windows...right ? ph34r.gif
sPiKie
The-X: Yes, this is a code for Linux... Just compile it in Linux, or try Cygwin.. Or you could ask my daddy to translate it to winsock "windows" smile.gif
DJVASTVASTY2K
Hello M8's

Thanks For The Replies People

How do you convert/translate into WinSock ??

Best Regards

Adam

Vast Gsm
sPiKie
You must have a good knowledge of C, and you also should know what you are doing.. The most imporant things in winsock, is WSAStartup(); and WSAClose();
If i dont remember wrong smile.gif
Start reading, reading = master, master = ridden smile.gif
DJVASTVASTY2K
Jeeeeez

That looks kinda hard man

do you think you could do this ??

Besr Regards

Adam

Vast Gsm
sPiKie
Pm me the source or something, and I can ask my daddy do translate it smile.gif
Or I could make a try wink.gif
I promise nothing
arun0075
QUOTE
Pm me the source or something, and I can ask my daddy do translate it


hmmm.. Ur. daddy is too gud at C programing I guess lol rolleyes.gif
Fractured
yes that file with those includes was meant to be compiled on a linux box... but like they have said it is possible to translate it to run on a windows box...good luck
Fareway
use cygwin for compilation:

gcc [c-file] [output file]

after that you must run the exe file in the same folder as cygwin1.dll

have fun!
DJVASTVASTY2K
QUOTE (Fareway @ Dec 23 2003, 12:25 PM)
use cygwin for compilation:

gcc [c-file] [output file]

after that you must run the exe file in the same folder as cygwin1.dll

have fun!

Hello M8's

Thanks 4 This FareWay

I will try this but when i downloaded CYGWIN i got a few errors and they was this below>

2003/12/16 00:47:08 mbox yesno: Download Incomplete. Try again?
2003/12/16 00:47:17 site: ftp://ftp.mirror.ac.uk/sites/sources.redhat.com/pub/cygwin
2003/12/16 00:47:22 site: ftp://ftp.mirror.ac.uk/sites/sources.redhat.com/pub/cygwin
2003/12/16 00:47:50 site: http://programming.ccp14.ac.uk/ftp-mirror/...gwin/pub/cygwin
2003/12/16 00:48:02 site: http://kambing.vlsm.org/DLL/cygwin
2003/12/16 00:48:18 site: http://ftp.gwdg.de/pub/linux/sources.redhat.com/cygwin
2003/12/16 00:48:31 source: download
2003/12/16 00:48:32 source: download
2003/12/16 00:48:32 Selected local directory: C:\cygwin
2003/12/16 00:48:33 net: Direct
2003/12/16 00:48:37 source: download
2003/12/16 00:48:37 Selected local directory: C:\cygwin
2003/12/16 00:48:38 net: Direct
2003/12/16 00:48:41 site: http://ftp.eq.uc.pt/software/pc/prog/cygwin
2003/12/16 00:48:51 site: ftp://sunsite.ms.mff.cuni.cz/MIRRORS/sour....com/pub/cygwin
2003/12/16 00:49:01 source: download
2003/12/16 00:49:02 source: download
2003/12/16 00:49:03 Selected local directory: C:\cygwin
2003/12/16 00:49:03 net: Direct
2003/12/16 00:49:03 site: ftp://sunsite.ms.mff.cuni.cz/MIRRORS/sour....com/pub/cygwin
2003/12/16 00:49:15 site: rsync://sigunix.cwru.edu/cygwin-ftp
2003/12/16 00:49:15 mbox note: Can't open /cygwin-ftp/setup.bz2 for reading: No such file or directory
2003/12/16 00:49:16 mbox note: Can't open /cygwin-ftp/setup.ini for reading: No such file or directory
2003/12/16 00:49:18 mbox note: Unable to get setup.ini from <rsync://sigunix.cwru.edu/cygwin-ftp>
2003/12/16 00:49:21 site: rsync://mirrors.xmission.com/cygwin
2003/12/16 00:49:21 mbox note: Can't open /cygwin/setup.bz2 for reading: No such file or directory
2003/12/16 00:49:23 mbox note: Can't open /cygwin/setup.ini for reading: No such file or directory
2003/12/16 00:49:23 mbox note: Unable to get setup.ini from <rsync://mirrors.xmission.com/cygwin>
2003/12/16 00:54:53 site: http://sigunix.cwru.edu/pub/cygwin/ftp
2003/12/16 00:55:24 Ending cygwin install

So what do you think i can do to fix theese erros please ??

Thank You So Much

Any Help/Input is very much appreciated/

Thank You

Best Regards

Adam

Vast Gsm
X-FloppY
you can always search > www.alltheweb.com > FTP SEARCH
you will find any files you want
DJVASTVASTY2K
Hello M8's

Thanks For The Reply Ok Will Try That

But For Now When I Compile In GCC This Is What I Get More Errors sad.gif

C:\>cd C:\GCC\usr\bin

C:\GCC\usr\bin>gcc OpenFuckV2.c OpenFuckV2.Exe
gcc: OpenFuckV2.Exe: No such file or directory
OpenFuckV2.c:8:23: arpa/inet.h: No such file or directory
OpenFuckV2.c:9:24: netinet/in.h: No such file or directory
OpenFuckV2.c:10:23: sys/types.h: No such file or directory
OpenFuckV2.c:11:24: sys/socket.h: No such file or directory
OpenFuckV2.c:12:19: netdb.h: No such file or directory
OpenFuckV2.c:13:19: errno.h: No such file or directory
OpenFuckV2.c:14:20: string.h: No such file or directory
OpenFuckV2.c:15:19: stdio.h: No such file or directory
OpenFuckV2.c:16:20: unistd.h: No such file or directory
OpenFuckV2.c:18:25: openssl/ssl.h: No such file or directory
OpenFuckV2.c:19:25: openssl/rsa.h: No such file or directory
OpenFuckV2.c:20:26: openssl/x509.h: No such file or directory
OpenFuckV2.c:21:25: openssl/evp.h: No such file or directory
OpenFuckV2.c:641: error: `SSL2_MAX_CONNECTION_ID_LENGTH' undeclared here (not in a function)
OpenFuckV2.c:644: error: syntax error before "X509"
OpenFuckV2.c:644: warning: no semicolon at end of struct or union
OpenFuckV2.c:649: error: syntax error before '*' token
OpenFuckV2.c:649: warning: data definition has no type or storage class
OpenFuckV2.c:650: error: syntax error before '*' token
OpenFuckV2.c:650: warning: data definition has no type or storage class
OpenFuckV2.c:658: error: syntax error before '}' token
OpenFuckV2.c:658: warning: data definition has no type or storage class
OpenFuckV2.c: In function `getip':
OpenFuckV2.c:668: warning: assignment makes pointer from integer without a cast
OpenFuckV2.c:668: error: `NULL' undeclared (first use in this function)
OpenFuckV2.c:668: error: (Each undeclared identifier is reported only once
OpenFuckV2.c:668: error: for each function it appears in.)
OpenFuckV2.c:672: error: dereferencing pointer to incomplete type
OpenFuckV2.c:672: error: dereferencing pointer to incomplete type
OpenFuckV2.c: In function `sh':
OpenFuckV2.c:681: error: `fd_set' undeclared (first use in this function)
OpenFuckV2.c:681: error: syntax error before "rset"
OpenFuckV2.c:693: error: `stdin' undeclared (first use in this function)
OpenFuckV2.c:693: error: `rset' undeclared (first use in this function)
OpenFuckV2.c:697: error: `NULL' undeclared (first use in this function)
OpenFuckV2.c:718: error: `stdout' undeclared (first use in this function)
OpenFuckV2.c: In function `get_local_port':
OpenFuckV2.c:727: error: storage size of `s_in' isn't known
OpenFuckV2.c: In function `connect_host':
OpenFuckV2.c:741: error: storage size of `s_in' isn't known
OpenFuckV2.c:744: error: `AF_INET' undeclared (first use in this function)
OpenFuckV2.c:748: error: `SOCK_STREAM' undeclared (first use in this function)
OpenFuckV2.c: At top level:
OpenFuckV2.c:762: error: syntax error before '*' token
OpenFuckV2.c: In function `ssl_connect_host':
OpenFuckV2.c:764: error: `ssl' undeclared (first use in this function)
OpenFuckV2.c:766: error: syntax error before ')' token
OpenFuckV2.c: At top level:
OpenFuckV2.c:772: error: syntax error before '->' token
OpenFuckV2.c:816: error: syntax error before '*' token
OpenFuckV2.c: In function `read_ssl_packet':
OpenFuckV2.c:820: error: `ssl' undeclared (first use in this function)
OpenFuckV2.c:820: error: `buf' undeclared (first use in this function)
OpenFuckV2.c:834: error: `buf_size' undeclared (first use in this function)
OpenFuckV2.c:842: error: `MD5_DIGEST_LENGTH' undeclared (first use in this function)
OpenFuckV2.c:843: error: `SSL2_MT_ERROR' undeclared (first use in this function)
OpenFuckV2.c: At top level:
OpenFuckV2.c:875: error: syntax error before '*' token
OpenFuckV2.c: In function `send_ssl_packet':
OpenFuckV2.c:880: error: `MD5_CTX' undeclared (first use in this function)
OpenFuckV2.c:880: error: syntax error before "ctx"
OpenFuckV2.c:884: error: `ssl' undeclared (first use in this function)
OpenFuckV2.c:885: error: `rec_len' undeclared (first use in this function)
OpenFuckV2.c:885: error: `MD5_DIGEST_LENGTH' undeclared (first use in this function)
OpenFuckV2.c:903: error: `ctx' undeclared (first use in this function)
OpenFuckV2.c:905: error: `rec' undeclared (first use in this function)
OpenFuckV2.c: At top level:
OpenFuckV2.c:929: error: syntax error before '*' token
OpenFuckV2.c: In function `send_client_hello':
OpenFuckV2.c:948: error: `ssl' undeclared (first use in this function)
OpenFuckV2.c: At top level:
OpenFuckV2.c:956: error: syntax error before '*' token
OpenFuckV2.c: In function `get_server_hello':
OpenFuckV2.c:964: error: `ssl' undeclared (first use in this function)
OpenFuckV2.c:965: error: `uint16_t' undeclared (first use in this function)
OpenFuckV2.c:965: error: syntax error before ')' token
OpenFuckV2.c:975: error: `SSL2_MT_SERVER_HELLO' undeclared (first use in this function)
OpenFuckV2.c:1006: error: `NULL' undeclared (first use in this function)
OpenFuckV2.c:1029: error: `SSL2_MAX_CONNECTION_ID_LENGTH' undeclared (first use in this function)
OpenFuckV2.c: At top level:
OpenFuckV2.c:1041: error: syntax error before '*' token
OpenFuckV2.c: In function `send_client_master_key':
OpenFuckV2.c:1045: error: `EVP_PKEY' undeclared (first use in this function)
OpenFuckV2.c:1045: error: `pkey' undeclared (first use in this function)
OpenFuckV2.c:1045: error: `NULL' undeclared (first use in this function)
OpenFuckV2.c:1058: error: `ssl' undeclared (first use in this function)
OpenFuckV2.c:1067: error: `EVP_PKEY_RSA' undeclared (first use in this function)
OpenFuckV2.c:1073: error: `RSA_PKCS1_PADDING' undeclared (first use in this function)
OpenFuckV2.c:1081: error: `key_arg_overwrite' undeclared (first use in this function)
OpenFuckV2.c:1087: error: `key_arg_overwrite_len' undeclared (first use in this function)
OpenFuckV2.c: At top level:
OpenFuckV2.c:1101: error: syntax error before '*' token
OpenFuckV2.c: In function `generate_key_material':
OpenFuckV2.c:1104: error: `MD5_CTX' undeclared (first use in this function)
OpenFuckV2.c:1104: error: syntax error before "ctx"
OpenFuckV2.c:1108: error: `ssl' undeclared (first use in this function)
OpenFuckV2.c:1109: error: `MD5_DIGEST_LENGTH' undeclared (first use in this function)
OpenFuckV2.c:1110: error: `ctx' undeclared (first use in this function)
OpenFuckV2.c: At top level:
OpenFuckV2.c:1121: error: syntax error before '*' token
OpenFuckV2.c: In function `generate_session_keys':
OpenFuckV2.c:1123: error: `ssl' undeclared (first use in this function)
OpenFuckV2.c:1125: error: `RC4_KEY' undeclared (first use in this function)
OpenFuckV2.c:1125: error: syntax error before ')' token
OpenFuckV2.c:1129: error: syntax error before ')' token
OpenFuckV2.c: At top level:
OpenFuckV2.c:1132: error: syntax error before '*' token
OpenFuckV2.c: In function `get_server_verify':
OpenFuckV2.c:1136: error: `ssl' undeclared (first use in this function)
OpenFuckV2.c:1137: error: `uint16_t' undeclared (first use in this function)
OpenFuckV2.c:1137: error: syntax error before ')' token
OpenFuckV2.c:1144: error: `SSL2_MT_SERVER_VERIFY' undeclared (first use in this function)
OpenFuckV2.c: At top level:
OpenFuckV2.c:1153: error: syntax error before '*' token
OpenFuckV2.c: In function `send_client_finished':
OpenFuckV2.c:1156: error: `SSL2_MT_CLIENT_FINISHED' undeclared (first use in this function)
OpenFuckV2.c:1157: error: `ssl' undeclared (first use in this function)
OpenFuckV2.c: At top level:
OpenFuckV2.c:1160: error: syntax error before '*' token
OpenFuckV2.c: In function `get_server_finished':
OpenFuckV2.c:1165: error: `ssl' undeclared (first use in this function)
OpenFuckV2.c:1166: error: `uint16_t' undeclared (first use in this function)
OpenFuckV2.c:1166: error: syntax error before ')' token
OpenFuckV2.c:1169: error: `SSL2_MT_SERVER_FINISHED' undeclared (first use in this function)
OpenFuckV2.c: At top level:
OpenFuckV2.c:1182: error: syntax error before '*' token
OpenFuckV2.c: In function `get_server_error':
OpenFuckV2.c:1187: error: `ssl' undeclared (first use in this function)
OpenFuckV2.c: In function `main':
OpenFuckV2.c:1217: error: `ssl1' undeclared (first use in this function)
OpenFuckV2.c:1218: error: `ssl2' undeclared (first use in this function)
OpenFuckV2.c:1253: error: `stdout' undeclared (first use in this function)

C:\GCC\usr\bin>

I am getting the same error messages as before as I was when trying to compile in BloodShed or Lcc win32 or dev++ etc..

I am sure this is because there is missing include files sad.gif

I am NOT going to request them as that is against the forum rules but if you could send a link or source to them via PM or e-mail please do.

Any Help/Input is greatly appreciated

All suggestions are pleasentley welcome wink.gif

Thank You

VastGsm AT Hotmail DOT Com

Best Regards

Adam

Vast Gsm
yuliang11
the includes won't work in windows if u cut and paste it.use cygwin. the best is to compile it under linux. cygwin is not 100% always working. make note that windows compiler will not work on linux code. also. i've problem downloading cygwin too, and i can tell you one thing, it's darn slow(i'm using a 2meg line). well u can choose only donwload the gcc thingie(which makes it faster). and if the ftp site is not working. there are a lot of mirrors for it on the setup. try the http one.
DJVASTVASTY2K
Hello M8's

Thank You for the help "yuliang11" but I am still haveing problems sad.gif
I have included the missing includes thanks to "X-FloppY" for provideing the URL wink.gif Cheers Floppy. But how do I use CYGWIN ??

Any Help/Advice/Suggestion is greatly appreciated

Thank You

I have included the missing includes in a RAR along with the uncompiled source if anyone wants to try. Also I have not seen this exploit posted on the forums, So if anyone wants to compile and upload it to the downloads section be my guest tongue.gif

http://www.governmentsecurity.org/forum/in...?showtopic=5487

Best Of Luck You Will Need As I Have Tried A Number Of Things Of 1-3 and From A-Z.

Best Regards

Adam

Vast Gsm
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.