Skip to content

Instantly share code, notes, and snippets.

View Antonin-Deniau's full-sized avatar

Antonin Deniau Antonin-Deniau

View GitHub Profile
@Antonin-Deniau
Antonin-Deniau / clock
Last active April 25, 2018 11:52
DCPU
Name: Generic Clock (compatible)
ID: 0x12d0b402
Version: 1
Interrupts do different things depending on contents of the A register:
A | BEHAVIOR
---+----------------------------------------------------------------------------
0 | The B register is read, and the clock will tick 60/B times per second.
| If B is 0, the clock is turned off.
# Radare2
## Command line options
```
-L: List of supported IO plugins
-q: Exit after processing commands
-w: Write mode enabled
-i: Interprets a r2 script
-A: Analize executable at load time (xrefs, etc)
-n: Bare load. Do not load executable info as the entrypoint
//main.js
harvester = require("harvester.js")
upgrader = require("upgrader.js")
harvester()
upgrader()
//harvester.js
function() {
@Antonin-Deniau
Antonin-Deniau / memento.py
Created September 28, 2016 09:40
R2pipe Memento
import r2pipe
import pprint
EXIT_PID = 17
r2 = r2pipe.open("./bomb", ["-A", "-d", "-R./bomb.rr2"])
out = "\n\n###### BEGIN_TRACE ######\n\n"
r2.cmd("db 0x004011e7")
#!/bin/bash
read -p "how many seconds: " sec
sleep $(python -c "print $sec")
for i in {1..20}
do
sleep 0.5
echo -ne '\007'
@Antonin-Deniau
Antonin-Deniau / pwn_r2pipe.py
Last active January 8, 2018 17:54
R2pipe wrapper for pwntools
from r2pipe import open as r2
import types
def open(sock, filename='', flags=[]):
cmd = ["r2", "-q0", filename]
cmd = cmd[:1] + flags + cmd[1:]
rr = sock.run(cmd)
rr.recvuntil("\x00")
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Bienvenu sur le sit de reporter of CSS !</title>
<style>
body {
height: 98vh;
--primary_color: #dcdcdc;

Keybase proof

I hereby claim:

  • I am Antonin-Deniau on github.
  • I am antonindeniau (https://keybase.io/antonindeniau) on keybase.
  • I have a public key whose fingerprint is 4E8C 22CF 5D25 10D5 47C5 CF7A 654F 5F04 A073 0CD6

To claim this, I am signing this object:

% ag --stats -q '\? true : false'
148 matches
148 matched lines
104 files contained matches
14047 files searched
0 bytes printed
78586519 bytes searched
0.483766 seconds spent searching
0.270221 seconds
@Antonin-Deniau
Antonin-Deniau / test.php
Created November 6, 2018 12:56
test.php
lol
<?php
echo("thisisaster");