Vile Posted May 4, 2010 Share Posted May 4, 2010 (edited) instead of Win+R and running "Cmd" you should run cmd /Q /D /T:7F /F:OFF /V:OFF /K "@echo off && mode con:RATE=31 DELAY=0 && mode con:COLS=15 LINES=1 && title . && cls" (Or if you're like me & you use Psychosis's PsyDuk Framework you can replace the PDOpenWindowsTerminal() in your code with this instead: PDRunWindowsCommand(PSTR("cmd /Q /D /T:7F /F:OFF /V:OFF /K \"@echo off && mode con:RATE=31 DELAY=0 && mode con:COLS=15 LINES=1 && title . && cls\" ")); What it does is: It disables the registry reads cmd.exe runs on start which might slow it down, it turns autocompletion off, changes the background/foreground text color to grey on white which is hard to read and not as easily recognizable as an msdos command box, It also runs cmd.exe with the @echo off command, it uses mode.exe to change the msdos window to have low typing delay from the keyboard and it uses mode once again to change the window size of the msdos box to a small window that is only 1 command line length in height. the last commands it runs are titlebar "." to change it to just an empty titlebar (You could change it to something else, Windows Update for example) .. and then it runs 'cls' to clear the buffer. Edited May 5, 2010 by Vile Quote Link to comment Share on other sites More sharing options...
Sl45h3R Posted May 4, 2010 Share Posted May 4, 2010 Nice, you should also add code that moves it to the bottom left/right hand corner of the screen :) Quote Link to comment Share on other sites More sharing options...
Netshroud Posted May 4, 2010 Share Posted May 4, 2010 Nice, I'll take a look at it this afternoon. Quote Link to comment Share on other sites More sharing options...
benownzu93 Posted May 5, 2010 Share Posted May 5, 2010 That is relay cool, I'm going to start using that for most of my ducky stuff. Quote Link to comment Share on other sites More sharing options...
Vile Posted May 6, 2010 Author Share Posted May 6, 2010 (edited) Also you could add this code (Only if you use psychosis's PsyDuk framework) : void PDMoveOffScreen(uint8_t amountOfMoves) { PDKeypressWithModifier(KEY_SPACE, KEY_ALT); PDDelay(10); PDTypeString(PSTR("M")); PDDelay(10); Â Â Â Â PDKeypressRepeated_Alt(KEY_LEFT,amountOfMoves); Â Â Â Â PDDelay(10); Â Â Â Â PDKeypress(KEY_ENTER);Â Â Â Â } void PDKeypressRepeated_Alt(uint8_t key, uint8_t amountOfTimes) { Â Â Â Â for(uint8_t i=0; i < amountOfTimes; i++) Â Â Â Â { Â Â Â Â Â Â Â Â PDKeypress(key); Â Â Â Â Â Â Â Â PDDelay(2); Â Â Â Â } } Then in your Main() function after calling the cmd.exe use: PDMoveOffScreen(50); The only problem is if they move their mouse while it is moving.. they can essentially just drag the window back. In my code i use devcon.exe to disable the mouse device while it is moving & reenable it once the commands are finished. Edited May 6, 2010 by Vile Quote Link to comment Share on other sites More sharing options...
benownzu93 Posted May 6, 2010 Share Posted May 6, 2010 (edited) Also you could add this code (Only if you use psychosis's PsyDuk framework) : void PDMoveOffScreen(uint8_t amountOfMoves) { PDKeypressWithModifier(KEY_SPACE, KEY_ALT); PDDelay(10); PDTypeString(PSTR("M")); PDDelay(10); Â Â Â Â PDKeypressRepeated_Alt(KEY_LEFT,amountOfMoves); Â Â Â Â PDDelay(10); Â Â Â Â PDKeypress(KEY_ENTER);Â Â Â Â } void PDKeypressRepeated_Alt(uint8_t key, uint8_t amountOfTimes) { Â Â Â Â for(uint8_t i=0; i < amountOfTimes; i++) Â Â Â Â { Â Â Â Â Â Â Â Â PDKeypress(key); Â Â Â Â Â Â Â Â PDDelay(2); Â Â Â Â } } Then in your Main() function after calling the cmd.exe use: PDMoveOffScreen(50); The only problem is if they move their mouse while it is moving.. they can essentially just drag the window back. In my code i use devcon.exe to disable the mouse device while it is moving & reenable it once the commands are finished. That's just what I was working on :D ,I'm using arduino not c but it's not too hard to translate between them them. Also i like the devcon idea, time to make a full on payload :P --Edit-- I just came across this, don't know if it will be any good http://www.apps4apps.filetap.com/nomousy.html Edited May 6, 2010 by benownzu93 Quote Link to comment Share on other sites More sharing options...
Sl45h3R Posted May 6, 2010 Share Posted May 6, 2010 I just came across this, don't know if it will be any good http://www.apps4apps.filetap.com/nomousy.html Nice find, now all we need todo is something like that for the keyboard ;) Quote Link to comment Share on other sites More sharing options...
benownzu93 Posted May 7, 2010 Share Posted May 7, 2010 Nice find, now all we need todo is something like that for the keyboard ;) If you disable keyboard with something like this wouldn't stop the ducky as well. Quote Link to comment Share on other sites More sharing options...
Netshroud Posted May 23, 2010 Share Posted May 23, 2010 Added to next version of PsyDuk. Looks great! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.