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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export3.dtd"> | |
<en-export export-date="20130730T205637Z" application="Evernote" version="Evernote Mac"> | |
<note> | |
<title>Test Note for Export</title> | |
<content> | |
<![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"> | |
<en-note style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> | |
Hello, World. |
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) 2019 Guillaume Valadon <[email protected]> | |
// This program is published under a GPLv2 license | |
/* | |
* Decompile a function with Ghidra | |
* | |
* analyzeHeadless . Test.gpr -import $BINARY_NAME -postScript GhidraDecompiler.java $FUNCTION_ADDRESS -deleteProject -noanalysis | |
* | |
*/ |
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 <stdio.h> | |
#include <stdint.h> | |
#include <Windows.h> | |
#include <string> | |
#include <DbgHelp.h> | |
#pragma comment(lib, "dbghelp.lib") | |
const DWORD CV_SIGNATURE_RSDS = 0x53445352; // 'SDSR' |
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
// Test std::map's lower_bound() | |
#include <stdio.h> | |
#include <map> | |
#include <iostream> | |
struct range_t | |
{ | |
unsigned long a; | |
unsigned long b; |
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
// Test std::map's lower_bound() | |
#include <stdio.h> | |
#include <map> | |
#include <iostream> | |
struct range_t | |
{ | |
unsigned long a; | |
unsigned long b; |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
out = [] | |
st = 0 | |
out.append('<ul>') | |
with open('Driving.txt', 'r') as f: | |
for line in f: | |
# Skip empty line | |
if len(line.strip()) == 0: | |
continue |
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
#--------------------------------------------------------------------- | |
EXEFLAG_NONE = 0x0000 | |
EXEFLAG_LINUX = 0x0001 | |
EXEFLAG_WINDOWS = 0x0002 | |
EXEFLAG_MACOS = 0x0004 | |
EXEFLAG_MACOS_FAT = 0x0008 | |
EXEFLAG_32BITS = 0x0010 | |
EXEFLAG_64BITS = 0x0020 | |
# Keep signatures sorted by size |
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 <stdio.h> | |
#include <windows.h> // for EXCEPTION_ACCESS_VIOLATION | |
#include <excpt.h> | |
int filter(unsigned int code, struct _EXCEPTION_POINTERS *ep) { | |
puts("in filter."); | |
if (code == EXCEPTION_ACCESS_VIOLATION) { | |
puts("caught AV as expected."); | |
return EXCEPTION_EXECUTE_HANDLER; | |
} | |
else { |
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
// https://support.microsoft.com/en-us/help/323809/how-to-get-information-from-authenticode-signed-executables | |
#include <windows.h> | |
#include <wincrypt.h> | |
#include <wintrust.h> | |
#include <stdio.h> | |
#include <tchar.h> | |
#pragma comment(lib, "crypt32.lib") |
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
# | |
# Export marked location sorted by their address | |
# | |
# Get marked locations | |
Locs = [] | |
idx = 0 | |
while True: | |
s = idc.GetMarkComment(idx) | |
if s is None: |
NewerOlder