Skip to content

Instantly share code, notes, and snippets.

View Batuhanaydn's full-sized avatar
👊
Focusing

Muhammed Batuhan Aydın Batuhanaydn

👊
Focusing
View GitHub Profile
@Batuhanaydn
Batuhanaydn / Basic_RCE_TOOL
Created October 30, 2022 21:30
It is a tool that allows you to perform RCE tests on the domain in a simple way.
import requests
import re
from cmd import Cmd
class Terminal(Cmd):
print("""
____/\\\\\\\\\____________/\\\\\\\\\__/\\\\\\\\\\\\\\\_______________/\\\\\\\________/\\\\\\\________/\\\\\\\____
__/\\\///////\\\_______/\\\////////__\/\\\///////////_____________/\\\//////\\\___/\\\//////\\\___/\\\//////\\\__
_\/\\\_____\/\\\_____/\\\/___________\/\\\_______________________\///_____\//\\\_\///_____\//\\\_\///_____\//\\\_
_\/\\\\\\\\\\\/_____/\\\_____________\/\\\\\\\\\\\_________________________/\\\____________/\\\____________/\\\__
import socket
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
port = 4444
client.connect(('127.0.0.1', port))
print(client.recv(1024).decode())
import asyncio
import websockets
# create handler for each connection
async def handler(websocket, path):
data = await websocket.recv()
import socket
import sys
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print ("Socket successfully created")
except socket.error as err:
print ("socket creation failed with error %s" %(err))
http = 80
@Batuhanaydn
Batuhanaydn / listenServer.py
Created May 26, 2022 14:56
A tool for listening to ports as bind, written in socket programming with Python
import socket
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
port = 4444
server.bind(('', port))
print(f"Socket binded to {port}")
import os
# Metapackages are used to install many packages at one time, created as a list of dependencies on other packages. Kali Linux uses these in a few ways. One way is allowing users to decide how many packages out of the total Kali list they would like to install. Need just enough to use Linux? Want enough to conduct Pentests? Perhaps nearly every package available in Kali?
# To install a metapackage we first need to update and then install the desired package:
apt = "apt install "
kali_tools = "kali-tools-"
y = " -y"
@Batuhanaydn
Batuhanaydn / python_downloader.py
Created May 12, 2022 23:31
Python code that automatically downloads python version
# pip install wget
# coding: utf8
import wget
os = ""
p_word = ""
surum = input("Enter the version you want to download: ")
platform = input("Linux:1 / Windows:2 / :")
if platform == "1":
os = "tgz"
p_word = "P"
@Batuhanaydn
Batuhanaydn / google_cheat_sheet.md
Created April 11, 2022 12:58
Google Cheat Sheet
We couldn’t find that file to show.
@Batuhanaydn
Batuhanaydn / web-servers.md
Created April 10, 2021 21:40 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000