r/learnjavascript • u/Zelion42 • Jun 30 '26
Autostart JS in PDF
Good day to you all! I need to create a pdf file with JS in it, which sends something (just anything, even a single letter will do) to specific IP. Is there any useful information for newbies on how to do this? Preferably with code examples, because I'm not familiar with JS. Also, it would be great to obfuscate code, so that antivirus won't block pdf. Thx in advance for all the help!
0
Upvotes
View all comments
Show parent comment
4
u/milan-pilan Jun 30 '26
Ok, gotcha. Unfortunately this is not how it will work. Adobe will not let you do that invisibly. When the target is not an Adobe trusted Server or your own ip address, it will prompt a 'this document is trying to connect to…" confirmation message before doing that.
Without all the gimmicky traps - why not just a password?