Included new library version with support for tcp src port paylaod injection

This commit is contained in:
h3xduck
2022-05-09 18:57:23 -04:00
parent ff2868846f
commit ff0f34c6a4
10 changed files with 9 additions and 83 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -19,7 +19,8 @@ typedef struct stream_t{
typedef enum{
TYPE_TCP_SEQ_RAW,
TYPE_TCP_ACK_RAW
TYPE_TCP_ACK_RAW,
TYPE_TCP_SRC_PORT
}stream_inject_type_t;
//PacketForger headers
@@ -50,6 +51,8 @@ int set_TCP_flags(packet_t packet, int hex_flags);
int set_TCP_seq_num(packet_t packet, u_int32_t bytes);
int set_TCP_src_port(packet_t packet, u_int16_t bytes);
//SocketManager headers
int rawsocket_send(packet_t packet);

Binary file not shown.

View File

@@ -19,7 +19,8 @@ typedef struct stream_t{
typedef enum{
TYPE_TCP_SEQ_RAW,
TYPE_TCP_ACK_RAW
TYPE_TCP_ACK_RAW,
TYPE_TCP_SRC_PORT
}stream_inject_type_t;
//PacketForger headers
@@ -50,6 +51,8 @@ int set_TCP_flags(packet_t packet, int hex_flags);
int set_TCP_seq_num(packet_t packet, u_int32_t bytes);
int set_TCP_src_port(packet_t packet, u_int16_t bytes);
//SocketManager headers
int rawsocket_send(packet_t packet);

Binary file not shown.

BIN
src/log

Binary file not shown.

View File

@@ -14,7 +14,7 @@
#define LOCAL_ABORT() \
do { \
printf("Abort at %s:%d\n", __FILE__, __LINE__); \
abort(); \
return -1; \
} while (0)
/**