Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

How do you make a python downloader? / download and execute a .js payload

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.
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
(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
(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
Dude .


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 631 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by SceneWarrior01010Aug 24, 2022 09:32 AM 6 336 Aug 24, 2022 09:32 AM
Last Post: th30c0der
[C] by Who_Am_IAug 13, 2022 05:00 PM 7 370 Aug 13, 2022 05:00 PM
Last Post: nulluser123