Jump to content

[Payload] Adding Printers With A Ducky?


lyonrt

Recommended Posts

Here is what I use.

REM Author: ISchiavon
REM Description: Open a CMD bypassing UAC then logs in to the remote printer then adds printer and enables it.
ESCAPE
CONTROL ESCAPE
DELAY 400
STRING cmd
DELAY 400
MENU
DELAY 400
STRING a
DELAY 600
LEFTARROW
ENTER
DELAY 400
STRING net use \\10.0.0.1 /u:username password
ENTER
DELAY 100
STRING rundll32 printui.dll,PrintUIEntry /ga /n\\10.0.0.1\Printer
ENTER
DELAY 100
STRING net stop spooler
ENTER
DELAY 100
STRING net start spooler
ENTER
DELAY 100
STRING rundll32 printui.dll,PrintUIEntry /p /n\\10.0.0.1\Printer
ENTER
STRING exit
ENTER

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...