Skip to content

Commit 280e720

Browse files
committed
fixed includes for cSploitCommon
1 parent 02a6b6a commit 280e720

32 files changed

Lines changed: 84 additions & 64 deletions

cSploitClient/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ LOCAL_SHARED_LIBRARIES:= cSploitCommon
2424
LOCAL_LDLIBS:= -llog
2525

2626
LOCAL_C_INCLUDES:= \
27-
cSploitCommon/ \
27+
cSploitCommon/include \
2828
cSploitHandlers/
2929

3030
LOCAL_SRC_FILES:= $(wildcard $(LOCAL_PATH)/*.c)

cSploitClient/auth.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@
1919
#include <jni.h>
2020
#include <stddef.h>
2121

22-
#include "control_messages.h"
23-
#include "message.h"
22+
#include <csploit/control_messages.h>
23+
#include <csploit/message.h>
24+
#include <csploit/control.h>
25+
#include <csploit/sequence.h>
26+
#include <csploit/str_array.h>
27+
2428
#include "command.h"
2529
#include "log.h"
26-
#include "control.h"
2730
#include "connection.h"
28-
#include "sequence.h"
2931
#include "controller.h"
30-
#include "str_array.h"
32+
3133

3234
#include "auth.h"
3335

cSploitClient/auth.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#include <jni.h>
2222

23-
#include "control.h"
23+
#include <csploit/control.h>
2424

2525
int on_auth_status(message *);
2626
inline int authenticated(void);

cSploitClient/child.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
#include <errno.h>
2222
#include <string.h>
2323

24-
#include "control_messages.h"
24+
#include <csploit/control_messages.h>
25+
2526
#include "log.h"
2627
#include "connection.h"
2728

cSploitClient/child.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
#include <jni.h>
2222
#include <arpa/inet.h>
2323

24-
#include "list.h"
25-
#include "control.h"
26-
#include "buffer.h"
24+
#include <csploit/list.h>
25+
#include <csploit/control.h>
26+
#include <csploit/buffer.h>
2727

2828
struct handler;
2929

cSploitClient/command.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
#include <pthread.h>
2020
#include <errno.h>
2121

22-
#include "message.h"
22+
#include <csploit/message.h>
23+
#include <csploit/control_messages.h>
24+
#include <csploit/sequence.h>
25+
#include <csploit/str_array.h>
2326

2427
#include "child.h"
2528
#include "connection.h"
2629
#include "event.h"
2730
#include "log.h"
28-
#include "control_messages.h"
2931
#include "handler.h"
30-
#include "sequence.h"
3132
#include "controller.h"
3233
#include "auth.h"
33-
#include "str_array.h"
3434

3535
#include "command.h"
3636

cSploitClient/command.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef COMMAND_H
1919
#define COMMAND_H
2020

21-
#include "message.h"
21+
#include <csploit/message.h>
2222

2323
int on_command(JNIEnv *, message *);
2424
int start_blind_command(JNIEnv *, jclass, jstring);

cSploitClient/connection.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
#include <unistd.h>
2727
#include <pthread.h>
2828

29+
#include <csploit/control.h>
30+
2931
#include "log.h"
30-
#include "control.h"
3132
#include "reader.h"
3233
#include "notifier.h"
3334
#include "handler.h"

cSploitClient/controller.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@
1818
#include <pthread.h>
1919
#include <jni.h>
2020

21+
#include <csploit/message.h>
22+
#include <csploit/control_messages.h>
23+
#include <csploit/sequence.h>
24+
2125
#include "log.h"
2226
#include "controller.h"
2327
#include "connection.h"
2428
#include "command.h"
2529
#include "auth.h"
2630
#include "handler.h"
27-
#include "message.h"
28-
#include "control_messages.h"
29-
#include "sequence.h"
3031

3132
pthread_mutex_t ctrl_seq_lock = PTHREAD_MUTEX_INITIALIZER;
3233
uint16_t ctrl_seq = 0;

cSploitClient/event.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
#include <errno.h>
2222
#include <string.h>
2323

24+
#include <csploit/str_array.h>
25+
2426
#include "log.h"
2527
#include "cache.h"
2628
#include "child.h"
27-
#include "str_array.h"
2829

2930
#include "nmap.h"
3031
#include "hydra.h"

0 commit comments

Comments
 (0)