Skip to content

Instantly share code, notes, and snippets.

View lexavey's full-sized avatar
⚠️
This account is no longer maintained

Lexa Vey lexavey

⚠️
This account is no longer maintained
  • Free
  • Zimbabwe
View GitHub Profile
@lexavey
lexavey / fixexec.py
Created September 10, 2022 17:35 — forked from the-moog/fixexec.py
Python script to fix the "exec format error" seen with tools like gzip in WSL with Ubuntu 22.04 in Q1/Q2 2022
#!/usr/bin/env python
r"""
This script can be used to fix the "exec format error" seen with tools like gzip in
WSL with Ubuntu 22.04 in Q1/Q2 2022
A hacky fix for broken executables in WSL/Ubuntu 22.0
see https://github.com/microsoft/WSL/issues/8219
@lexavey
lexavey / c9.sh
Last active November 14, 2022 10:01
Install and configure Cloud9IDE in Ubuntu Server
## update and install all depencies
sudo apt-get update && sudo apt-get -y install curl git build-essential && sudo dpkg --configure -a
## if something error happen, try upgrade (sudo apt upgrade)
## Install Python2.7
sudo apt install python2.7 -y
## add c9 users and skip password
adduser --disabled-password --gecos "" c9user
@lexavey
lexavey / install.sh
Last active December 18, 2022 19:52
Install phpmyadmin and apache2 in WSL
#!/bin/bash
sudo apt update && sudo apt upgrade
sudo apt install mysql-server
sudo service mysql start
#Reset root password
sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'jancok123';flush privileges;"
sudo apt install apache2
sudo apt install phpmyadmin
@lexavey
lexavey / check.py
Last active September 16, 2022 04:53
Python Check HTTP Status
import requests,ssl,re
import warnings
from multiprocessing.dummy import Pool #multi thread
warnings.filterwarnings("ignore", category=DeprecationWarning)
@lexavey
lexavey / indosat.txt
Created September 16, 2022 04:44
Subdomain Operator
https://adfs2.indosatooredoo.com
http://adfs2.indosatooredoo.com
http://admin.incloud.indosatooredoo.com
https://admin.incloud.indosatooredoo.com
http://ads.indosatooredoo.com
https://ads.indosatooredoo.com
https://amqp.incloud.indosatooredoo.com
http://amqp.incloud.indosatooredoo.com
https://api-careers.indosatooredoo.com
http://api-careers.indosatooredoo.com
@lexavey
lexavey / pip.txt
Last active September 25, 2022 06:59
generate requirements.txt python
For python3: (I have both python 2 and 3 on my machine, where python2 is the default)
# install
pip3 install pipreqs
# Run in current directory
python3 -m pipreqs.pipreqs .
python2:
pip install pipreqs
https://archive.org/download/crimeflare/cloudflare_0.txt
https://archive.org/download/crimeflare/cloudflare_1.txt
https://archive.org/download/crimeflare/cloudflare_2.txt
https://archive.org/download/crimeflare/cloudflare_3.txt
https://archive.org/download/crimeflare/cloudflare_4.txt
https://archive.org/download/crimeflare/cloudflare_5.txt
https://archive.org/download/crimeflare/cloudflare_6.txt
https://archive.org/download/crimeflare/cloudflare_7.txt
https://archive.org/download/crimeflare/cloudflare_8.txt
https://archive.org/download/crimeflare/cloudflare_9.txt
directory="./"
save_dir="./SAVED"
##Scan and merge
find "$directory" -type f -name "*.tmp" -print0 | while read -d $'\0' file
do
named="SortYearMonthDate"
filename=$(basename "$file")
year=$(echo "$filename"|cut -d "-" -f 1)
month=$(echo "$filename"|cut -d "-" -f 2)
@lexavey
lexavey / scan.sh
Created September 26, 2022 08:41
Check HTTP Status
down_par(){
while ! command -v ./parallel &> /dev/null
do
# printf "\rDownloading Parallel"
wget -q http://git.savannah.gnu.org/cgit/parallel.git/plain/src/parallel -O parallel
chmod 755 parallel
printf "will cite" | ./parallel --citation &> /dev/null
done
}
fast_search(){
@lexavey
lexavey / termux
Created September 30, 2022 14:43 — forked from rewida17/termux
Run termux env via eg adb shell
#!/system/xbin/bash
#Based on https://github.com/termux/termux-app/issues/77
export PREFIX='/data/data/com.termux/files/usr'
export HOME='/data/data/com.termux/files/home'
export LD_LIBRARY_PATH='/data/data/com.termux/files/usr/lib'
export PATH="/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:$PATH"
export LANG='en_US.UTF-8'
export SHELL='/data/data/com.termux/files/usr/bin/bash'
export BIN='/data/data/com.termux/files/usr/bin'
export TERM=vt220