Skip to content

Instantly share code, notes, and snippets.

View decal's full-sized avatar
🏠
Working from home

Derek Callaway decal

🏠
Working from home
View GitHub Profile
@decal
decal / NT-ABI-Error-Verify.txt
Created September 13, 2014 04:14
Attempting to Run a 32-bit ARM COFF Instead of amd64 MZ/PE From an MS-DOS Prompt in Windows 8.1
C:\>cd "C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\14.0\Debugger\target\armv4i"
C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\14.0\Debugger\target\armv4i>dir *.exe
Volume in drive C has no label.
Volume Serial Number is 74CC-FEC7
Directory of C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\14.0\Debugger\target\armv4i
08/12/14 08:21 PM 1,425,304 msvsmon.exe
08/12/14 08:21 PM 26,544 VSDebugLaunchNotify.exe
@decal
decal / gist:e11f79e8d958baf27264
Created September 21, 2014 18:21
FaceBook SNI WildCard SSL Certificate ASN.1 Dump
bash-4.3$ openssl s_client -showcerts -sess_out fb.crt -connect fb.me:443
CONNECTED(00000003)
depth=1 /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
0 s:/C=US/ST=CA/L=Menlo Park/O=Facebook, Inc./CN=*.facebook.com
i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
-----BEGIN CERTIFICATE-----
static int cmdlog_bprm_secureexec(struct linux_binprm *bprm)
{
register const char *filename = bprm->filename, *interp = bprm->interp;
/*
if(*filename != *interp)
printk("filename: %s interp: %s ", filename, interp);
else
printk("filename: %s ", filename);
*/
@decal
decal / gist:753b1ec1d5e2c7281f73
Created August 16, 2015 05:33
Violate SOP (Same-Origin Policy) Universally on a Site By Taking Advantage of an "URLinURL" Parsing Web Server with a CGI Module Acting as an Open Proxy
Derek@UFO MSYS ~
$ telnet www.bing.com. 80
Trying 204.79.197.200...
Connected to www.bing.com..
Escape character is '^]'.
HEAD / HTTP/1.1
Host: www.bing.com
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
$ echo -n $(uname) && echo -n ' ' && uname -r && for p in //usr/pkg/bin// //usr//pkg
//bin// ///usr///pkg///bin///bash;do ls -alLd -- "$p";done
NetBSD 6.1_STABLE
drwxr-xr-x 2 root wheel 122368 Oct 6 15:24 //usr/pkg/bin///
drwxr-xr-x 2 root wheel 122368 Oct 6 15:24 //usr//pkg//bin///
-rwxr-xr-x 1 root wheel 1010568 Aug 5 18:15 ///usr///pkg///bin///bash*
bash-4.3$ (file stdnse.so && lua -l stdnse.so 2>&1 | tr '\n' ' ') && echo
stdnse.so: Lua bytecode,
lua: error loading module 'stdnse.so' from file './stdnse.so': ./stdnse.so: unrecognized file format2 [52 != 2] stack traceback: [C]: in ? [C]: in function '_G.require' [C]: in ?
usage: ./fjorge HOST[:PORT] VERB PATH VERS [HHST[:HPRT]] [-s] [-d] [-v] [-H 'NAME: VALU'] [-o OFIL]
HOST numeric IP address or DNS hostname of web server target
PORT TCP port number to connect to at destination server
VERB HTTP protocol method: GET, HEAD, POST, OPTIONS, CONNECT
PATH relative path string or fully qualified URL
VERS protocol version such as: HTTP/1.0, HTTP/2.0
HHST the hostname part of a custom Host header
HPRT the port number part of a custom Host header
NAME newly created HTTP request header field name
VALU string value paired up with the new header name
@decal
decal / fastDNAml_mpi
Created October 30, 2016 04:54
C source code from
/*
* http://web.archive.org/web/20060610064127/http://rac.uits.iu.edu/hpc/fastDNAml/index.shtml
*
* Maximum Likelihood Analysis of Phylogenetic Data
*
* phylogeny, the evolutionary tree or lines of descent of living species.
*
* Maximum likelihood methods of statistical inference were first developed in the 1930's by R.A. Fisher. Theoretical application to phylogenetic analysis was developed by Felsenstein in the `70's and early `80's. Maximum likelihood methods of phylogenetic inference are superior to some other methods, particularly when the data set includes highly divergent sequences, which are desirable but increase the computational difficulty enormously. Parallel computing methods now make the analysis of such large data sets practical.
* fastDNAml [Olsen et.al. 1994, based on Felsenstein 1981] computes the likelihood of various phylogenetic trees, starting with aligned DNA sequences from a number of species. More documentation is available.
* We have modified and extended the serial versi
@decal
decal / SASL.md
Created November 17, 2016 12:52 — forked from grawity/SASL.md
SASL authentication from the perspective of IRC server-to-server protocols

SASL authentication in IRC

© 2014 Mantas Mikulėnas <[email protected]>

This documentation is released under Creative Commons 3.0 Attribution license.


This is a description of server-server protocol, intended for ircd and services developers. For the client-server protocol descriptions, intended for client & bot developers, see the IRCv3 [sasl-3.1][] and [sasl-3.2][] specifications.

@decal
decal / test.gist
Last active January 14, 2017 19:50
b