View gist:62060f2aa693a56a513f90c379751075
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
/tmp/grepawk/server/fs-ops.js | |
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module' | |
/tmp/grepawk/server/http.js | |
3:7 error 'xfs' is assigned a value but never used no-unused-vars | |
5:7 error 'url' is assigned a value but never used no-unused-vars | |
7:7 error 'formidable' is assigned a value but never used no-unused-vars |
View osed-setup.bat
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
:: Windows 10 OSED Setup | |
:: | |
:: Connect over RDP with: rdesktop IP -u Offsec -p lab -r disk:kali=/home/kali/OSED/ -P | |
:: Store files in ~/OSED/files/. Check script for appropriate file locations | |
:: | |
:: Extra files sourced from: https://github.com/corelan/windbglib | |
:: | |
:::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: Install mona |
View neomutt-bt
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
Program received signal SIGSEGV, Segmentation fault. | |
[33m__memmove_avx_unaligned_erms[m () at [32m../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S[m:440 | |
440 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory. | |
(gdb) bt | |
#0 [33m__memmove_avx_unaligned_erms[m () at [32m../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S[m:440 | |
#1 [34m0x0000555555628d26[m in [33mmemcpy[m ([36m__len[m=1650605088, [36m__src[m=<optimized out>, [36m__dest[m=<optimized out>) at [32m/usr | |
/include/x86_64-linux-gnu/bits/string_fortified.h[m:34 | |
#2 [33mserial_restore_char[m ([36mc=c@entry[m=0x555555addbd0, [36md=d@entry[m=0x555555ac3a80 "R?\025&\227", <incomplete sequence \375\215>, | |
[36moff=off@entry[m=0x7fffffffabec, [36mconvert=convert@entry[m=false) at [32mhcache/serialize.c[m:187 | |
#3 [34m0x0000555555628e91[m in [33mserial_restore_address[m ([36mal=al@entry[m=0x555555adda80, [36md=d@entry[m=0x555555ac3a80 "R?\025&\227" |
View rofi -help
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
rofi usage: | |
rofi [-options ...] | |
Command line only options: | |
-no-config Do not load configuration, use default values. | |
-v,-version Print the version number and exit. | |
-dmenu Start in dmenu mode. | |
-display [string] X server to contact. | |
${DISPLAY} | |
-h,-help This help message. |
View pgp-public-key-0BF8C33B7606AA25154729F922368077DE9F9903.asc
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFpVkIoBEADWK+eqWDoK6zCyjQQrYrFqCxQgiccC6RKYkxabTWuD8MZOFYT7 | |
qCyCZ6OHjUQb2FkXMr4WUc0n6nVrmGgu0jc4sGvR4kM06tTszg2lss8IIvHPeJu9 | |
V8e+Xh+7EX0d9X/wqYArMMygSxgMVFiT61E2JFS07yHHP2DgNrPX91kdjSEcjr+A | |
PnLiuVMx6hHIFXtu3FgpOP8Plfme9WisPqE3YhUm/p3tPNBMqW5lBxPYCKk1t+r5 | |
EWVNtEprDx7yCYFYr5HALHgT/1NiBOHZ8nlTlnfW4Qgs/q4z86Di0rbK/6a2gfIQ | |
FxCSw81m6iTiYLs6Kfx271MbBXNxft4rhE3kV2JTgZsQ162SaxhnKqyQClQZ25Hy | |
PohJ9NwCWgtnWxiK+yGwcxV+MYpkDZVQDfNjyoi7SOuXH5ypwflsruF4NK4zcyH/ | |
yPq8P34zPMb/hydU3jGWOqIhrpZkAoLI9dj2omN8qwNZ1w8y0Ry3EzUNaSll8UBN |
View repro-empty-encrypted-file-bug.js
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
/** | |
* BUG: When encrypting certain types of files, an empty (0B) file is created. | |
* I can reproduce it with PDFs and JPGs, however, this works with text | |
* files and some executables, so it's not a "plaintext-only" issue. | |
**/ | |
const fs = require("fs"); | |
const crypto = require("crypto"); | |
/** |
View LING490-LS3-grade-calc.py
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
# LING490-LS3 Grade Calculator | |
# Written by: Aaron Lichtman | |
# Adjustment for dropped homework. Replace the weight you choose to drop with 0. | |
adj = REMOVED_WEIGHT_HERE / 6 | |
weight = { | |
"ch03" : .03 + adj, | |
"hw01" : .08 + adj, | |
"hw02" : .10 + adj, |
View Sample Stage 2
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
This is a sample second stage of an infection. This is part of https://github.com/alichtman/malware-techniques | |
As the great philosopher Drake once said: "If you're reading this, it's too late." |
View logging.c
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
#define DEBUG 1 | |
#if DEBUG == 1 | |
#define LOG(...) fprintf(stderr, "\x1b[35m[%s:%d] \x1b[32m%s()\x1b[0m: ", __FILE__, __LINE__, __func__); fprintf(stderr, __VA_ARGS__) | |
#else | |
#define LOG(...) | |
#endif | |
int main(){ | |
int some_param = 2; |
View python-zip-unpack-in-js
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
/** | |
* Takes three arrays and zips them into a list of lists like this: | |
* | |
* [1,2,3] | |
* [a,b,c] -> [ [1,a,!], [2,b,@], [3,c,#] ] | |
* [!,@,#] | |
*/ | |
function zipThreeArrays(a, b, c) { | |
let zipped = []; | |
for (var i = 0; i < a.length; i++) { |
NewerOlder