simple python script to make a few requests to a vm

master
Nicholas Hope 2022-12-30 12:35:30 -05:00
parent 934425c073
commit 719c4157e8
1 changed files with 44 additions and 0 deletions

44
make-requests.py Normal file
View File

@ -0,0 +1,44 @@
import requests
import random
import asyncio as aio
async def hitvm(filename: str):
requests.get(f'http://172.30.0.156/{filename}')
async def main():
filenames = [
"wp-login.php",
".env",
"plugins/system/debug/debug.xml",
"administrator/language/en-GB/en-GB.xml",
"administrator/help/en-GB/toc.json",
".git/config",
"vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php",
"xmlrpc.php",
"wp1/wp-includes/wlwmanifest.xml",
"wp/wp-includes/wlwmanifest.xml",
"wordpress/wp-includes/wlwmanifest.xml",
"web/wp-includes/wlwmanifest.xml",
"test/wp-includes/wlwmanifest.xml",
"site/wp-includes/wlwmanifest.xml",
"shop/wp-includes/wlwmanifest.xml",
"cms/wp-includes/wlwmanifest.xml",
"blog/wp-includes/wlwmanifest.xml",
"2019/wp-includes/wlwmanifest.xml",
"wp-load.php",
"public/_ignition/health-check",
"_ignition/health-check",
"admin/.env",
"protected/.env",
"wp-includes/wp-class.php",
"wp-commentin.php",
"wp-signin.php"
]
await aio.gather(*[
hitvm(filename)
for filename in random.choices(
filenames, k=len(filenames)//2
)
])
aio.run(main())