Skip to content

Commit

Permalink
Update aioRequests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinedev committed Dec 19, 2024
1 parent f30a680 commit 4c3aa25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/aioRequests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ async def gun_shell(url, method, type, headers, payload):
headers={"User-Agent":user_agent, "Content-Type": 'application/json'}
if payload=={} or payload is None:
payload={}
elif payload is not None:
try:
payload = ast.literal_eval(payload)
except:
payload = json.loads(payload)

if type=="nor":
async with aiohttp.ClientSession() as session:
Expand Down

0 comments on commit 4c3aa25

Please sign in to comment.