Skip to content

Instantly share code, notes, and snippets.

@moyix
moyix / killbutmakeitlooklikeanaccident.sh
Created February 5, 2022 22:51
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
@voidstar0
voidstar0 / captcha.js
Last active May 13, 2023 00:44
PX Stuff Cleaned up
/** @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,
@zedd3v
zedd3v / px-encode-decode.ts
Last active May 30, 2024 17:00
PerimeterX Payload decode & encode functions
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;