This file contains 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 "rbtree.h" | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
RBTree *rbtree_init(int (*rbt_keycmp)(void *, void *)) | |
{ | |
RBTree *tree = malloc(sizeof(RBTree)); | |
if (tree == NULL) { | |
printf("malloc tree failed\n"); |
This file contains 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
string replaceNullStr(const char* input){ | |
size_t srcLen = strlen(input); | |
const char* p = input; | |
int nullStr = 0; | |
while (*p != '\0') { | |
if (*p == ' ') { | |
++nullStr; | |
} | |
++p; | |
} |
This file contains 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
int bytes2string(unsigned char *src, int srcsize, unsigned char *dst, int dstsize) | |
{ | |
if (dst != NULL) | |
{ | |
*dst = 0; | |
} | |
if (src == NULL || srcsize <= 0 || dst == NULL || dstsize <= srcsize * 2) | |
{ | |
return 0; |
This file contains 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
// x86_64-w64-mingw32-gcc tfo.c -o tfo -lws2_32 -static -g -O0 | |
#define TARGET_URL "localhost" | |
#define TARGET_PORT 8000 | |
#ifndef _WINSOCK_H | |
#define _WINSOCK_H | |
#ifdef __MINGW32__ |
This file contains 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
import heapq | |
import asyncio | |
class EventSimulator(asyncio.AbstractEventLoop): | |
'''A simple event-driven simulator, using async/await''' | |
def __init__(self): | |
self._time = 0 | |
self._running = False | |
self._immediate = [] |
This file contains 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
/*************************************************************************\ | |
* Copyright (C) Michael Kerrisk, 2016. * | |
* * | |
* This program is free software. You may use, modify, and redistribute it * | |
* under the terms of the GNU General Public License as published by the * | |
* Free Software Foundation, either version 3 or (at your option) any * | |
* later version. This program is distributed without any warranty. See * | |
* the file COPYING.gpl-v3 for details. * | |
\*************************************************************************/ |
This file contains 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
### | |
# Unity folders and files | |
### | |
[Aa]ssets/AssetStoreTools* | |
[Bb]uild/ | |
[Ll]ibrary/ | |
[Ll]ocal[Cc]ache/ | |
[Oo]bj/ | |
[Tt]emp/ | |
[Uu]nityGenerated/ |
This file contains 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
isolation.tools.getPtrLocation.disable = "TRUE" | |
isolation.tools.setPtrLocation.disable = "TRUE" | |
isolation.tools.setVersion.disable = "TRUE" | |
isolation.tools.getVersion.disable = "TRUE" | |
monitor_control.disable_directexec = "TRUE" | |
monitor_control.disable_chksimd = "TRUE" | |
monitor_control.disable_ntreloc = "TRUE" | |
monitor_control.disable_selfmod = "TRUE" | |
monitor_control.disable_reloc = "TRUE" | |
monitor_control.disable_btinout = "TRUE" |
This file contains 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
# EXAMPLE OUTPUT | |
# ============== | |
# opening device 0xddcc | |
# connected | |
# tester present ... | |
# read data by id: boot software id ... | |
# 39990-TVA-A110 | |
# read data by id: application software id ... | |
# 39990-TVA-A150 | |
# read data by id: application data id ... |
This file contains 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
nmap -p <port> 192.168.0.*|grep -B3 open |
OlderNewer