Skip to content

Instantly share code, notes, and snippets.

View KebabLord's full-sized avatar

Junicchi KebabLord

View GitHub Profile
@KebabLord
KebabLord / cs2_triggerbot_linux.py
Last active September 4, 2024 00:00
CS2 Triggerbot for Linux
"""
CS2 Triggerbot for linux by Github/KebabLord
Usage:
$ pip install pynput keyboard
$ sudo python3 trigger.py
*Hold capslock to enable triggerbot*
Note:
If script fails to run, you probably need to update memory offsets:
@KebabLord
KebabLord / tureng-cli.py
Last active May 19, 2024 11:44
turengo, npm tureng ve tarayıcı eklentileri olsun yazılmış hiçbir tureng scripti an itibariyle çalışmadığından şu 16 satırlık zımbırtıyı yazmak zorunda kaldım.
#!/usr/bin/env python3
# Kullanım: ./tureng.py kelime [-f -s]
import requests,re,html,sys
useragent="Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
res = requests.get(f"https://tureng.com/en/turkish-english/{sys.argv[1]}",headers={"User-Agent":useragent}).text
words = re.findall(r'"hidden\-xs">(.*?)<.*?lang="(.*?)">.*?>(.*?)<.*?lang="(.*?)">.*?>(.*?)<',res,flags=re.S|re.M)
prettify = lambda x: html.unescape(x).replace("\n","").replace("\r","").replace("Turkish","TR").replace("English","EN")
for word in words:
usage = prettify(word[0])
w1 = prettify(word[2])
@KebabLord
KebabLord / proxy_server.ps1
Last active January 5, 2023 02:57
Use Apache as a forward http proxy server as a squid alternative for Windows with a basic username & password authentication. Don't use squidNT since it's not properly maintained and is literally ran under an emulator which is slow. Don't pay for http proxy servers, apache is free and faster. This script downloads and completely configures apach…
# This script downloads Apache Web Server and configures it to work as a forward http proxy server with basic authentication.
# In order to run this script you need to enable powershell scripting by opening the cmd as administrator,
# and running this command: powershell Set-ExecutionPolicy RemoteSigned
# After that just right click to this file and click to "Run With Powershell"
# WebProxy runs on port 80, tested on windows 11.
# Check VCRedist current version
$OS= if ( ${env:ProgramFiles(x86)} ) {"\WOW6432Node"} else {"\"}
$vcredist = Get-ItemProperty -Path "HKLM:\SOFTWARE$OS\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" -ErrorAction SilentlyContinue -ErrorVariable eVcRedist
if ($eVcRedist -Or ($vcredist.Bld -le 24215) ) {
@KebabLord
KebabLord / reddit_vid.py
Created February 22, 2021 10:47
Download reddit videos with sound without ffmpeg. Simply abuse reddit video downloader sites to get media url of video with sound.
""" Use reddit video downloader sites to get
URL of video with sound which they generated
"""
from re import findall
from requests import get
def reddit_vid(url):
""" Returns URL of video with sound. """
response = get("https://lew.la/reddit/")
@KebabLord
KebabLord / kripto.py
Last active February 1, 2021 21:40
tl cinsinden anlık kripto para birimleri ve yüzdelikleri i3block bloğu
#!/usr/bin/env python3
"""
[kripto]
label=
markup=pango
interval=60
instance=BTC
"""
@KebabLord
KebabLord / smart-tv.sh
Last active November 28, 2023 14:04
Simple shell script to control Vestel MB211 TV from terminal. Should work on all MBxxx models.
#!/bin/bash
#Get IP address of tv from searching port 56789
if [ -a /tmp/toshiba_ip ];then
tv_ip="$(cat /tmp/toshiba_ip)"
else
tv_ip="$(nmap 192.168.1.0/24 -sT -np56789 --open -oG - | awk '/Up$/{print $2}' | tee /tmp/toshiba_ip)"
fi
#Function to send specified command key code
@KebabLord
KebabLord / kali-dmenu.sh
Last active January 7, 2023 07:10
kali tool launcher dmenu. Created for my kali-i3wm build: https://github.com/kebablord/kali-i3wm
#!/bin/bash
dmenu_="dmenu -b -l 20 -fn terminus"
menu=$(jq -r 'keys_unsorted[]' menu.json | $dmenu_ )
[ -v "$menu" ] && exit
cmd=$(jq -r ".[\"${menu}\"] | keys_unsorted[]" menu.json | $dmenu_)
[ -v "$cmd" ] && exit
run=$(jq -r ".[\"${menu}\"][\"${cmd}\"]" menu.json)
@KebabLord
KebabLord / recent.sh
Last active November 24, 2020 20:16
list recent files from folders. Useful for recent downloaded files and newly taken screenshots
#!/bin/bash
# Usage: ./recent.sh <parameters> [FOLDER]
SS_FOLDER="$HOME/Pictures/Screenshots/"
DL_FOLDER="$HOME/Downloads/"
list_amount=1
sorter="tail"
while getopts "h?n:rsd" opt; do
@KebabLord
KebabLord / My Gists.md
Last active May 20, 2024 23:06
gist.list

smart-tv.sh - Control Vestel MB211 TV from terminal.
cs2_trigger.py - CS2 Trigger bot for linux
proxy.ps1 - Apache forward proxy server setup with auth for win.
kali-dmenu.sh - Categorized Kali tools launcher with dmenu
tureng.sh - 14 line tureng dictionary script that works.
databreach_check.py - Checks new accessive databreaches
recent.sh - List recent files in folders. Useful for downloads and screenshots.
turkdox.py - Check Username avaibility of turkish sites.
kripto.py - i3 block for crypto currency in Turkish Liras.

@KebabLord
KebabLord / turkdox.py
Last active October 1, 2020 19:57
Popüler türk sitelerinde kullanıcı sorgusu scipti.
#!/usr/bin/env python3
# Önizleme: https://u.teknik.io/nCIrg.png
import requests
siteler = {
"KizlarSoruyor":"https://www.kizlarsoruyor.com/uye/",
"Onedio.com":"https://onedio.com/profil/",
"EkşiSözlük":"https://eksisozluk.com/biri/",
"Puiv.com":"https://www.puiv.com/k/"