| Anonymous | Login | Signup for a new account | 11-10-2008 10:45 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0000263 | [BusyBox] Networking Support | major | always | 05-19-05 09:32 | 07-31-05 15:34 | ||||
| Reporter | owlman | View Status | public | ||||||
| Assigned To | BusyBox | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | 1.00 | ||||||
| Summary | 0000263: nc cannot use -e when initiating a tcp connection to something else | ||||||||
| Description |
Host A is a full linux. Host B is a busybox. A$ nc -l -p 3000 B$ nc -e /bin/sh A 3000 The connection goes up and immediately down, because the busybox nc close()s stdin (filedescriptor 0), then socket()s the connection to the next available filedescriptor (0), then starts the filedescriptor duplication spree: dup2(0, 0); close(0); dup2(0,1); dup2(0,2). The attached patch removes the first close()ing of stdin, because the first dup2() does it for us |
||||||||
| Additional Information | |||||||||
| Attached Files |
|
||||||||
|
|
|||||||||
| Copyright © 2000 - 2006 Mantis Group |