Skip to content

Instantly share code, notes, and snippets.

Emilien Devos unixfox

Block or report user

Report or block unixfox

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@unixfox
unixfox / README.md
Last active Jun 5, 2019
Block Cloudflare MITM attack
View README.md

This is a source code of BCMA's "Block Cloudflare MITM Attack".

PRs are welcome.

This add-on will block, notify, or redirect your request if the target website is using Cloudflare.
@unixfox
unixfox / google.py
Last active May 25, 2019
Google fixed engine Searx
View google.py
# Google (Web)
#
# @website https://www.google.com
# @provide-api yes (https://developers.google.com/custom-search/)
#
# @using-api no
# @results HTML
# @stable no (HTML can change)
# @parse url, title, content, suggestion
View searx_auto_complete_post.js
searx = {};
searx.method = "POST";
searx.autocompleter = true;
View opensearch.xml
<?xml version="1.0" encoding="utf-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Searx Belgium</ShortName>
<Description>a privacy-respecting, hackable metasearch engine</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image>https://searx.be/static/themes/oscar/img/favicon.png</Image>
<LongName>searx metasearch</LongName>
<Url type="text/html" method="post" template="https://searx.be/search">
<Param name="q" value="{searchTerms}" />
</Url>
@unixfox
unixfox / background.js
Last active May 1, 2019
Firefox web extension that enable a proxy if on mobile/cellular network
View background.js
if (navigator.connection.type === "cellular") {
browser.proxy.register(
"pac.js"
);
}
View paccompy.js
function FindProxyForURL(url, host) {
if (url.substring(0, 5) == 'http:' || url.substring(0, 6) == 'https:') {
return "HTTP 192.168.192.10:8080";
}
return "DIRECT";
}
@unixfox
unixfox / ppp-watcher.service
Created Apr 3, 2019
Network Manager PPPoE ADSL/VDSL2 connection watcher
View ppp-watcher.service
[root@odroidhc1 system]# cat ppp-watcher.service
[Unit]
Description=NetworkManager PPPoE Watcher
[Service]
TimeoutStopSec=2
ExecStart=/usr/local/bin/ppp-watcher
[Install]
WantedBy=multi-user.target
@unixfox
unixfox / ex1.py
Created Mar 26, 2019
Exercices architecture de l'ordinateur Henallux Q2 manipulation 4 Raspberry pi
View ex1.py
import RPi.GPIO as GPIO
from time import sleep
GPIO.setmode(GPIO.BCM)
GPIO.setup(24, GPIO.OUT)
try:
while 1:
GPIO.output(24, 1)
sleep(0.1)
@unixfox
unixfox / pwned.py
Last active Mar 12, 2019
Pwned checker based on the computerphile's video
View pwned.py
#!/usr/bin/env python
import sys
import urllib.request
import hashlib
password = sys.argv[1]
passwordHashed = hashlib.sha1(password.encode('utf-8')).hexdigest().upper()
def fetchPwnedCount(passwordHashed):
passwordHashedKAnonymity = passwordHashed[:5]
@unixfox
unixfox / resetpasswdlinux.md
Last active Jan 18, 2019
Reset password of a Linux machine (in this case Debian)
View resetpasswdlinux.md

Tuto disponible en vidéo :


Manipulation

  1. Lancer Debian/votre linux
  2. Lors du boot sur l'écran de grub appuyer sur la touche e
  3. Descendre avec la touche directionnelle du bas jusqu'à se trouver sur la ligne linux:
You can’t perform that action at this time.