Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40

Thread: Netcat C++

  1. #1
    Senior Member
    Join Date
    May 2004
    Posts
    206

    Netcat C++

    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?
    It is better to die on your feet than to live on your knees.

  2. #2
    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.

  3. #3
    Senior Member
    Join Date
    May 2004
    Posts
    206
    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:
    It is better to die on your feet than to live on your knees.

  4. #4
    Senior Member
    Join Date
    Nov 2001
    Posts
    4,785
    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:
    no but you could uuencode it then uudecode it

    wouldn't it be easier to:

    tftp -i xx.xxx.xx.xxx get nc.exe
    nc -whatever
    Bukhari:V3B48N826 “The Prophet said, ‘Isn’t the witness of a woman equal to half of that of a man?’ The women said, ‘Yes.’ He said, ‘This is because of the deficiency of a woman’s mind.’”

  5. #5
    Ninja Code Monkey
    Join Date
    Nov 2001
    Location
    Washington State
    Posts
    1,027
    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.
    "When I get a little money I buy books; and if any is left I buy food and clothes." - Erasmus
    "There is no programming language, no matter how structured, that will prevent programmers from writing bad programs." - L. Flon
    "Mischief my ass, you are an unethical moron." - chsh
    Blog of X

  6. #6
    Computer Forensics
    Join Date
    Jul 2001
    Posts
    672
    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?
    Antionline in a nutshell
    \"You\'re putting the fate of the world in the hands of a bunch of idiots I wouldn\'t trust with a potato gun\"

    Trust your Technolust

  7. #7
    Senior Member
    Join Date
    Nov 2001
    Posts
    4,785
    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!
    Bukhari:V3B48N826 “The Prophet said, ‘Isn’t the witness of a woman equal to half of that of a man?’ The women said, ‘Yes.’ He said, ‘This is because of the deficiency of a woman’s mind.’”

  8. #8
    Computer Forensics
    Join Date
    Jul 2001
    Posts
    672
    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.
    Antionline in a nutshell
    \"You\'re putting the fate of the world in the hands of a bunch of idiots I wouldn\'t trust with a potato gun\"

    Trust your Technolust

  9. #9
    Senior Member
    Join Date
    Jan 2003
    Posts
    3,915

    Re: Netcat C++

    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?
    Hey Hey,

    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

  10. #10
    Senior Member
    Join Date
    May 2004
    Posts
    206
    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.
    It is better to die on your feet than to live on your knees.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •