mirror of
https://github.com/h3xduck/TripleCross.git
synced 2025-12-24 18:33:08 +08:00
Included new library version with support for tcp src port paylaod injection
This commit is contained in:
Binary file not shown.
BIN
src/bin/kit
BIN
src/bin/kit
Binary file not shown.
@@ -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.
@@ -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.
@@ -14,7 +14,7 @@
|
||||
#define LOCAL_ABORT() \
|
||||
do { \
|
||||
printf("Abort at %s:%d\n", __FILE__, __LINE__); \
|
||||
abort(); \
|
||||
return -1; \
|
||||
} while (0)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user