Skip to content

Commit

Permalink
Fix errors: missing includes unistd.h & errno.h, comment include bion…
Browse files Browse the repository at this point in the history
…ic_asm.h machine on latest AStudio
  • Loading branch information
enovella committed Apr 8, 2018
1 parent 548c864 commit 4888b7c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AntiFrida/app/src/main/cpp/bionic_asm.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define __bionic_asm_custom_end(f)
#define __bionic_asm_function_type @function

#include <machine/asm.h>
//#include <machine/asm.h>

#define ENTRY_NO_DWARF(f) \
.text; \
Expand Down
4 changes: 3 additions & 1 deletion AntiFrida/app/src/main/cpp/native-lib.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <android/log.h>
#include <unistd.h>
#include <errno.h>

#define APPNAME "FridaDetectionTest"
#define MAX_LINE 512
Expand Down Expand Up @@ -55,7 +57,7 @@ void *detect_frida_loop(void *) {

usleep(100); // Give it some time to answer

if (ret = recv(sock, res, 6, MSG_DONTWAIT) != -1) {
if ((ret = recv(sock, res, 6, MSG_DONTWAIT)) != -1) {
if (strcmp(res, "REJECT") == 0) {
__android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "FRIDA DETECTED [1] - frida server running on port %d!", i);
}
Expand Down
Empty file modified AntiFrida/app/src/main/cpp/pagemap.h
100644 → 100755
Empty file.
Empty file modified AntiFrida/app/src/main/cpp/syscall.S
100644 → 100755
Empty file.

0 comments on commit 4888b7c

Please sign in to comment.