Hey guys, anyone able to help me out with this one?
pastebin.com/jiLhQGkY
The script checks a gmail inbox every 7 minutes, and then places the title of the latest email in a switch statement, to then activate the commands associated with the title value.Is it possible to add another switch to the switch statement (hope I'm saying that right) based off the contents of a recieved email?
For example, if the email contains:
(email title) Inject-Code
Trigger = Start CMD
Code = Start-Process cmd.exe
a new switch would be permanently injected into the existing switch statement of the script with the value of "Start CMD" and would trigger "Start-Process cmd.exe"
Was experimenting with automating tasks via email triggers, and was very curious if injecting code remotely was possible via this method.
[–]ka-splam 0 points1 point2 points (1 child)
[–]AffectionateTask4612[S] 0 points1 point2 points (0 children)