![]() |
|
[Python] How do you make a python downloader? / download and execute a .js payload - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] How do you make a python downloader? / download and execute a .js payload (/showthread.php?tid=6208286) |
How do you make a python downloader? / download and execute a .js payload - ZeroGay - Jun 5, 2022 I need a python script that simply downloads a js file from Web and then executes it. Please, your input is highly appreciated. Thank you in advance. RE: How do you make a python downloader? / download and execute a .js payload - unazed - Jun 5, 2022 download it using `requests` or `aiohttp`, then execute it using `subprocess` or something. not sure how you expect it to be executed considering python doesn't have a builtin js environment RE: How do you make a python downloader? / download and execute a .js payload - ZeroGay - Jun 5, 2022 (Jun 5, 2022 04:34 PM)unazed Wrote: download it using `requests` or `aiohttp`, then execute it using `subprocess` or something. not sure how you expect it to be executed considering python doesn't have a builtin js environment Thanks for the reply. I guess it's not possible to make a python download+execute a js file? O_O RE: How do you make a python downloader? / download and execute a .js payload - 3phase - Jun 6, 2022 (Jun 5, 2022 11:20 PM)ZeroGay Wrote: Thanks for the reply. I guess it's not possible to make a python download+execute a js file? O_O it's not "not possible", it is possible, but it depends on the complexity/dependencies of the js code, easy and straight forward method can be seen here |