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
#!/bin/bash | |
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
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
/** @license Copyright (C) 2014-2019 PerimeterX, Inc (www.perimeterx.com). Content of this file can not be copied and/or distributed. **/ | |
!function () { | |
"use strict"; | |
try { | |
atob; | |
} catch (n) { | |
var t = function (t) { | |
var n = [], | |
o = void 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
export interface EncodeOptions { | |
shift?: boolean; | |
shiftAmount?: number; | |
base64?: boolean; | |
} | |
export interface DecodeOptions extends EncodeOptions {} | |
export const decodePayload = (payload: string, options: DecodeOptions = {}): string => { | |
let { shift, base64, shiftAmount } = options; |