smealum / udsploit

nwm:UDS exploit + kernel hooks for 11.3
79 stars 17 forks source link

Prompts user to press 'START' on successful kernel hook. #19

Closed bknie1 closed 5 years ago

bknie1 commented 7 years ago

Saw someone post something about this in Issues so I thought I would add a quick print that prompts the user to, on kernel_hook() success, press 'START' to proceed with their installation. I came here looking for a similar answer!

I'm not familiar with the particulars of your stack so I placed the print in a cautious location just before the program exits and, presumably, after we succeed rather than fail.

Of course, feel free to place it where you like.

jason0597 commented 6 years ago

this wouldn't work, since this would just briefly print the string and then immediately exit when the user would press START

you have to put the printout before the main loop (where key presses are checked) key press checking is done via a main loop, where on every iteration of your loop you run a check on the keys, and if a key has been pressed, you do a bitmask and then run that through an if statement (if the resulting bitmask came out non-zero)

bknie1 commented 6 years ago

I see what you're saying @jason0597 . I'll revisit this but I'm not so sure the author is making any more modifications, anyway.