simple python script to make a few requests to a vm
parent
934425c073
commit
719c4157e8
|
@ -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())
|
Loading…
Reference in New Issue