-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Chromebook-Auto-Subscribe #507
base: master
Are you sure you want to change the base?
Conversation
It opens Google, subscribes to the channel you link, and writes a thank you on a Google doc. All you have to change is the part that says <your-youtubeaccount-link.com> with your YouTube account link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include a directory for your payload. The directory name should be your payload name.
Considering this payloads actions, it would also be more fitting inside of the execution category.
Here is an example of how it should be placed.
/payloads/library/execution/Chromebook-Auto-Sucribe/payload.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would I go back into my copy of it and do that whole process again? I'm confused on how to do the changes here on this specific one you wrote
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have it up to here: /payloads/library/execution/Chromebook-Auto-Subscribe and when you click on the Chromebook-Auto-Subscribe file under execution, it opens up the script, I have absolutely no clue on how to make it a payload.txt file under Chromebook-Auto-Subscribe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, Nevermind. I Just reuploaded it again, I accidentally just reposted the code updated but Im re commiting this one with payload.txt in it as well as ReadMe.txt. Im sorry for the confusion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind again, would you mind giving me a tutorial? I have a file in my files named Chromebook-Auto-Subscribe with the paylaod.txt and ReadMe.txt in it but I have no idea how to upload this.
DELAY 1000 | ||
GUI r | ||
DELAY 500 | ||
STRING chrome |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use STRINGLN
instead of STRING
ENTER
it has the same functionality and makes the code cleaner and easier to read
I would go and do this where it applies, it will shorten up the payload a lot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would I type: (STRINGLN chrome) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, Instead of doing
STRING chrome
ENTER
You can simply do
STRINGLN chrome
This will achieve the same functionality
REM Open YouTube channel link | ||
CTRL t | ||
DELAY 500 | ||
STRING <your-youtubeaccount-link.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using a DEFINE
for any configurable options. This allows you to put anything the user needs to change or access at the top of your payload and use it later on.
For example:
DEFINE #YTLINK example.com
STRINGLN #YTLINK
This will result in the ducky typing "example.com" where you place STRINGLN #YTLINK
DELAY 5000 REM 5 seconds to load the YouTube channel | ||
|
||
REM Use TAB to navigate to the Subscribe button (14 TAB presses) | ||
TAB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For instances where you are repeating a certain action continuously you can use REPEAT
.
REPEAT 14 TAB
This cleans up the payload and make it more readable. while keeping the same functionality.
My payload works for chromebooks, (Chromebook tested) -It auto subscribes to the YouTube account linked -Others can use it by installing it, changing the name to inject.bin, and dragging that file in to the USB rubber ducky SD card. -The only configuration needed is for whoever is using it to change the part that says example.com to the actual YouTube account link. -Have fun with it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You moved it to the correct payload category directory, however its still missing the payload directory itself.
Try putting a /
after Chromebook-Auto-Subscribe
then payload.txt when renaming the file.
Chromebook-Auto-Subscribe/payload.txt
REM Open YouTube channel link | ||
CTRL t | ||
DELAY 500 | ||
DEFINE #YTLINK example.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the DEFINE
to the top of the payload, under under your REM
So users can easily see and configure it.
I'm really sorry but I've been incredibly busy so it'd be nice if someone else could mess with the script to make it better. Once again I apologize, I love the Hak5 community and I love the products you make but I've been a little burned out lately cause I have a lot of stuff to do. |
Its completely ok! Thank you for the kind words, we highly appreciate your effort and contribution. We will keep the PR open for if you want to re-visit and make changes in the future. |
My payload works for chromebooks, (Chromebook tested)
-It auto subscribes to the YouTube account linked
-Others can use it by going to https://payloadstudio.hak5.org/community/ and putting it in there then clicking Generate payload, then clicking download to download the inject.bin file
-The only configuration needed is for whoever is using it to change the part that says <your-youtubeaccount-link.com> with the actual YouTube account link
-Have fun with it