I want to make a single C++ or windows batch file that will create c:\netcat.exe I know that netcat comes with the source code, but it's in 4 or 5 seperate files. Is there anyway to do this?
Printable View
I want to make a single C++ or windows batch file that will create c:\netcat.exe I know that netcat comes with the source code, but it's in 4 or 5 seperate files. Is there anyway to do this?
You could use a batch file to just run the netcat executable itself.
or
You can write a program in C++ that essentially opens a waiting connection on port # whatever, and delivers a prompt when i connection is made. packetstormsecurity has a bunch of remote root exploits which work as such.
Poke around there and learn a little.
Digital, I can't have it run the executable, because the computer doesn't have netcat yet. How do I get the hex dump?
Would it work if I opened netcat.exe in notepad, copied the stuff it gave me, and then had: echo "The stuff in netcat.exe from notepad" >> netcat.exe ?
Here are the files:
no but you could uuencode it then uudecode itQuote:
Originally posted here by Jareds411
Digital, I can't have it run the executable, because the computer doesn't have netcat yet. How do I get the hex dump?
Would it work if I opened netcat.exe in notepad, copied the stuff it gave me, and then had: echo "The stuff in netcat.exe from notepad" >> netcat.exe ?
Here are the files:
wouldn't it be easier to:
tftp -i xx.xxx.xx.xxx get nc.exe
nc -whatever
If I understand the question correctly, he has the source code and needs to compile it. I'd recommend picking up a good c++ compiler and learning how to use it. That or simply going and downloading the netcat binary instead of the source.
I'm sorry, are you retarded? I can't tell which is worse. The fact that you can't compile netcat, the fact that you didn't just download the binary, or the specialist's really stupid response.
Regardless, get a compiler, and compile the source or download the binary. Either way, I don't see what the hell this has to do with programming security. This belongs in the newbie section.
What the hell happened to this place?
Quote:
Originally posted here by hogfly
I'm sorry, are you retarded? I can't tell which is worse. The fact that you can't compile netcat, the fact that you didn't just download the binary, or the specialist's really stupid response.
Regardless, get a compiler, and compile the source or download the binary. Either way, I don't see what the hell this has to do with programming security. This belongs in the newbie section.
What the hell happened to this place?
Mood: bored
Reason: lack of decent content on the forums.....thanks to it, I am forced to begin posting again.
Mood Updated:
01-30-2002 12:49 AM
your last post: 01-09-2004 12:22 AM
thank you for the high quality post! no rhyme, no reason just bitch!
Actually, I beg to differ. My response contained a solution to the problem. You don't like it? **** off and don't read my post. Thanks, and have a nice day.
Hey Hey,Quote:
Originally posted here by Jareds411
I want to make a single C++ or windows batch file that will create c:\netcat.exe I know that netcat comes with the source code, but it's in 4 or 5 seperate files. Is there anyway to do this?
Maybe I'm the only one that noticed this but last time I checked netcat's course code was a single file. Does the Windows port have additional files? If so, I'm now kinda curious to see the Windows source, to see why it's multiple files.... I think everyone is going along the correct lines here though, get your self a compiler (check out http://www.bloodshed.net) and compile the code. Other than that I'm not really sure what you are asking. My personal opinion is that if you can't even compile the app you prolly have no use for the app.
Peace,
HT
I already have a compiler. And I did download the binary. I want netcat in one source file though, so it would be easier to edit.