This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
*/ | |
#include <arpa/inet.h> | |
#include <linux/if_packet.h> | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install xfce4 xfce4-goodies gnome-icon-theme tightvncserver -y | |
# adduser vnc | |
Give a password to your new user. You can skip all other questions by simply pressing ENTER. | |
Install sudo by executing this command: | |
apt-get install sudo | |
Add your new vnc user to the sudo group, which will give permissions to that user to execute root commands. | |
gpasswd -a vnc sudo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Install base pakages | |
sudo apt-get -y update && apt upgrade -y | |
sudo apt-get -y install ntpdate man man-db mtr ipset iperf3 dnsmasq python3-pip curl aria2 python3-lxml \ | |
fuse build-essential git zip libpcre3-dev libevent-dev libssl-dev libcurl4-openssl-dev libgd-dev libgeoip-dev libpq-dev libxslt1-dev \ | |
software-properties-common autotools-dev cdbs debhelper dh-autoreconf dpkg-dev gettext libev-dev libpcre3-dev libudns-dev pkg-config fakeroot devscripts \ | |
autoconf libtool pkg-config python3-dev libssl-dev | |
sudo apt-get autoremove -y | |
# Update time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import requests | |
# Use same session | |
s = requests.Session() | |
from time import sleep | |
# DEPRECATED in favor of match1() | |
def r1(pattern, text): | |
m = re.search(pattern, text) | |
if m: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from selenium import webdriver | |
from pyvirtualdisplay import Display | |
from flask import Flask, abord, request | |
app = Flask(__name__) | |
key = 'your secret key' | |
from selenium.webdriver.chrome.options import Options | |
chrome_options = Options() |
NewerOlder