This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ___ ____ ______ __ | |
| / | / __ \/ ___/ | / / | |
| / /| |/ / / /\__ \| | / / | |
| / ___ / /_/ /___/ /| |/ / | |
| /_/__||||||_//____/ |___/__ _____ __ _ __ | |
| / ____/ /_ ___ _____/ /_/ ___// /_ (_) /_ | |
| / / / __ \/ _ \/ ___/ __/\__ \/ __ \/ / __/ | |
| / /___/ / / / __/ /__/ /_ ___/ / / / / / /_ | |
| \____/_/ /_/\___/\___/\__//____/_/ /_/_/\__/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import time | |
| import os | |
| import requests | |
| from scapy.all import * | |
| DEFAULT_BAD_GATEWAY = '12:34:56:78:9A:BC' | |
| class Device(object): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ----------------------------------------------------- | |
| // Common definitions outside Ghidra | |
| // ----------------------------------------------------- | |
| typedef unsigned char byte; | |
| typedef long long longlong; | |
| typedef unsigned char uchar; | |
| typedef unsigned int uint; | |
| typedef unsigned long ulong; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "CVE-2017-9415": [ | |
| "42117" | |
| ], | |
| "CVE-2004-1656": [ | |
| "24422" | |
| ], | |
| "CVE-2004-1655": [ | |
| "24425" | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| __attribute__ ((weak)) void __sanitizer_cov_trace_pc_guard_init(uint32_t *start, uint32_t *stop) { | |
| } | |
| __attribute__ ((weak)) void __sanitizer_cov_trace_pc_guard(uint32_t *guard) { | |
| } | |
| __attribute__ ((weak)) void __cmplog_rtn_hook(uint8_t *ptr1, uint8_t *ptr2) { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| ''' | |
| Copyright (c) 2020-2021, Andrea Fioraldi | |
| Redistribution and use in source and binary forms, with or without | |
| modification, are permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, this | |
| list of conditions and the following disclaimer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![no_std] | |
| #![no_main] | |
| extern crate libc; | |
| #[ctor::ctor] | |
| fn foo() { | |
| unsafe { libc::puts("foo()\x00".as_ptr() as *const i8); } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <assert.h> | |
| /* Macro magic, you don't have to understand, just believe. */ | |
| #define AFL_MAGIC_FIRST_(a, ...) a | |
| #define AFL_MAGIC_SECOND_(a, b, ...) b | |
| #define AFL_MAGIC_FIRST(...) AFL_MAGIC_FIRST_(__VA_ARGS__,) | |
| #define AFL_MAGIC_SECOND(...) AFL_MAGIC_SECOND_(__VA_ARGS__,) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* automatically generated by rust-bindgen 0.55.1 */ | |
| #[doc = " class Object"] | |
| pub type afl_object_t = afl_object; | |
| #[repr(C)] | |
| #[derive(Debug, Copy, Clone)] | |
| pub struct afl_object_vtable { | |
| pub _base_vptr: *mut afl_object_vtable, | |
| pub _create_wrapper: ::std::option::Option< | |
| unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #define INHERITS(type) struct type _base; | |
| #define BASE_CAST(ptr) (&(ptr)->_base) | |
| #define VTABLE_INHERITS(type) struct type##_vtable _base; | |
| #define VTABLE_INIT_BASE_VPTR(type) \ | |
| ._base_vptr = (struct afl_object_vtable*)&type##_vtable_instance | |
| #define VTABLE_OF(type, ptr) ((struct type##_vtable*)(((struct afl_object*)(ptr))->vptr)) |
NewerOlder