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
#usage: program | python3 buffer.py <amount of lines to buffer> | another_program | |
import sys | |
lines = [] | |
try: | |
for line in sys.stdin: | |
lines.append(line) | |
if len(lines) >= int(sys.argv[1]): |
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
//dependecies | |
//futures = "0.3.5" | |
//async-std = "1.5.0" | |
use std::time::Duration; | |
use futures::executor::block_on; | |
use async_std::task; | |
use std::io::BufRead; | |
use std::io; | |
fn main() { |
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
use std::io::BufRead; | |
use std::io; | |
use std::thread; | |
use std::time; | |
fn read_line() -> Option<String> { | |
match io::stdin().lock().lines().next()? { | |
Ok(val) => Some(val), | |
Err(_) => None, | |
} |
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
//[dependencies] | |
//native-tls = "0.2.4" | |
use native_tls::TlsConnector; | |
use std::net::TcpStream; | |
use std::io::Write; | |
use std::io::Read; | |
fn main() { | |
let host = String::from("example.com"); | |
let path = "/"; |
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, sys, time | |
from concurrent.futures import ThreadPoolExecutor | |
from threading import Thread | |
class WorkThread(Thread): | |
def __init__(self, data): | |
Thread.__init__(self) | |
self.data = data | |
def run(self): | |
os.system(self.data) |
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
cd /tmp | |
print -P "%B%F{green} Creating 3proxy.cfg...%f%b" | |
echo "auth iponly" > 3proxy.cfg | |
echo "log 3proxy.log" >> 3proxy.cfg | |
echo "allow *" >> 3proxy.cfg | |
for i in {10000..10100} | |
do | |
echo "parent 10 http 127.0.0.1 $i" >> 3proxy.cfg | |
done |
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
#!/usr/bin/python3 | |
#Usage - "telegram {file}" or "telegram '{message}'" | |
import requests, sys | |
from requests.adapters import HTTPAdapter | |
from requests.exceptions import ConnectionError | |
group_id = "" | |
bot_token = "" | |
f = "" | |
try: |