mirror of
https://github.com/rofl0r/proxychains-ng
synced 2026-05-31 19:59:51 +08:00
Add option to change tcp destination port and ip before sending to proxy server
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#define __CORE_HEADER
|
||||
#define BUFF_SIZE 8*1024 // used to read responses from proxies.
|
||||
#define MAX_LOCALNET 64
|
||||
#define MAX_DNAT 64
|
||||
|
||||
#include "ip_type.h"
|
||||
|
||||
@@ -68,6 +69,11 @@ typedef struct {
|
||||
unsigned short port;
|
||||
} localaddr_arg;
|
||||
|
||||
typedef struct {
|
||||
struct in_addr orig_dst, new_dst;
|
||||
unsigned short orig_port, new_port;
|
||||
} dnat_arg;
|
||||
|
||||
typedef struct {
|
||||
ip_type ip;
|
||||
unsigned short port;
|
||||
|
||||
Reference in New Issue
Block a user