1
0
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:
tom gilon
2020-05-06 00:33:42 +03:00
Unverified
parent b8fa2a7405
commit de31961349
3 changed files with 93 additions and 0 deletions
+6
View File
@@ -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;