Unfortunatley, after windows vista Autorun of files on USB has been disabled - you'd just need to make a batch file that opens the mp3 file and adjusts the volume to maximum.
Volume up
if (@a==@b) @end /*
:: batch portion
@ECHO OFF
cscript /e:jscript "%~f0"
:: JScript portion */
var shl = new ActiveXObject("WScript.Shell");
for (var i=0; i<5; i++) {
shl.SendKeys(String.fromCharCode(0xAF));
}
Open file
{start wgnplot.exe "c:\path to file to open\johncena.mp3"}
combine the two and you can rename the file to 'google chrome' an dchange the icon to the chrome logo, place it on somebodys pc and everytime they open chrome johncena.mp3 plays
To make it even more fun add the command to actually open chrome aswell, so chrome opens at the same time John Cena plays, this will be more confusing for your victim!
dapht ยท 197 points ยท Posted at 18:05:46 on September 14, 2015 ยท (Permalink)
I pulled off a similar joke recently. I replace my buddy's Witcher 3 shortcut with a batch file that would open the game normally, wait about 10 minutes, then open up a minimized chrome window set to a soundcloud page the Hamster Dance at full volume. If OP has problems getting the mp3 onto their system, that's a good alternative.
I have no idea what any of this means, but I would love to make this happen, too.
Even just the thought of dropping off random USB thumb drives somewhere for people to discover, and then this happens, it'd be worth it. Hell, I'd probably do this in my own office.
But they'd be able to find you out pretty quick, because people near you would hear a distant John Cena theme song, paired with the sound of you collapsing in hysterical laughter.
nukeio ยท 23 points ยท Posted at 19:55:50 on September 14, 2015 ยท (Permalink)
Unfortunatley, after windows vista Autorun of files on USB has been disabled.
Not if you are extra smart about it though. If you self report as if you're device is a keyboard, and you assume that the user is using windows, you can enter text as if the following was typed:
Edit:
I'm on Ubuntu, so I can't remember, but there might even be a command to just start explorer. Is it:
[windows key down]e[windows key up]
By any chance? It's been almost 8 years since I used windows, so I'm pretty rusty.
Ccracked ยท 26 points ยท Posted at 04:17:41 on September 15, 2015 ยท (Permalink)
Linux humble-brag
Kilazur ยท 17 points ยท Posted at 07:14:36 on September 15, 2015 ยท (Permalink)
Hey, he's not openly shitting on Windows as any Linuxian I know would. That's something.
nukeio ยท 3 points ยท Posted at 12:53:31 on September 15, 2015 ยท (Permalink)
Windows would be great if it were open source and more Unix-y. The software it runs is great (Excel, games, Adobe cloud) and it has great 3d support and everything just works. But with the windows 10 updates I'm too worried about privacy to ever think about using it again.
Kilazur ยท 1 points ยท Posted at 13:01:22 on September 15, 2015 ยท (Permalink)
I hope you ain't using Chrome or something (not mentioning Facebook/Twitter/etc). Sadly if you're using Internet today, if you don't take paranoid-like precautions, your privacy is history.
nukeio ยท 3 points ยท Posted at 13:24:10 on September 15, 2015 ยท (Permalink)
Yeah, it's one thing to have my search history out, but always on microphones piss me off.
[deleted] ยท 3 points ยท Posted at 17:11:10 on October 27, 2015 ยท (Permalink)
How do you make the usb id as a keyboard?
nukeio ยท 3 points ยท Posted at 17:30:28 on October 27, 2015 ยท (Permalink)
Check out the USB Boot Keyboard section in the USB Device Class Definition for Human Interface Devices.
[deleted] ยท 2 points ยท Posted at 17:37:44 on October 27, 2015 ยท (Permalink)
Explain a bit more? I thought you needed an arduino?
nukeio ยท 2 points ยท Posted at 21:36:09 on October 27, 2015 ยท (Permalink)
You need to make a circuit that looks like a usb keyboard. In reality, anything can be behind the USB pins though. So if you use an arduino or even some micro code / firmware you can simulate a keyboard typing keys when the device is first plugged in.
[deleted] ยท 3 points ยท Posted at 21:37:41 on October 27, 2015 ยท (Permalink)
But I can't do this with only a usb drive?
nukeio ยท 3 points ยท Posted at 21:43:21 on October 27, 2015 ยท (Permalink)
Ah, I see your question now. No you cannot do this without physically masking the fact that your usb drive as a keyboard. It takes physical hardware circuit changes, not software layer changes. Sorry if I was unclear.
[deleted] ยท 2 points ยท Posted at 23:20:03 on October 27, 2015 ยท (Permalink)
Ok. Could you link me to how to do this with either a raspberry pi(have it) or one of the cheaper arduinos(don't have it)? I'm pretty good at soldering if needed.
nukeio ยท 1 points ยท Posted at 23:38:40 on October 27, 2015 ยท (Permalink)
I'm currently trying to do this but seem to be having issues. I've essentially copied your code into a batch file and it's executes but the music doesn't play nor does the volume go up... Any idea what the issue could be? Do I need to make a batch file for each code and then combine or make them in one?
I'll be honest, this isn't checked it's a quick copy from stack overflow, a little google-foo will help you out here.
Some things to check are file locations of the song, correct name etc. And also volume control might be handled different in newer versions of windows. Oh and also the default sound application could screw with it a bit.
But the code itself isn't vetted, I'll take a closer look tomorrow if you haven't got it to work.
PS - I work tech support and almost ended this message like answering a support ticket at work... Sigh.
I'm running Win10 so I know that's bound to mess with some stuff. Gonna try it on my brother's PC as it's intended for him before he returns for school and he runs Win8.
I know for sure file locations are correct along with the file name. As it stands volume doesn't go up nor does the song play so I'm gonna guess there's some Win10 sorcery being an asshat with this batch file.
True, I suppose I should switch words. Makes it easier for the average user though.
Mind you, I don't have a degree in any computer related subjects/paths. I just write shit for fun sometimes and generally call it all code... I'm a bad person.
not at all, as an IT programmer / tech support analyst that's how i started.
when i was in middle school i would write out scripts in general unix code, on paper, then go home and manually type them into a Telnet server and test them.
Well then. XD I'm nowhere near that. I just do basic web design for friends, some HTML stuff sometimes batch files and I avoid Java like the plague. But I can code basic C++ and C# as a took a course in HS.
I'm going to be an Avionics Technician with the RCAF .-.
That's actually what I initially wanted to do. I first applied for Pilot. I wanted to fly our C130s or a Globemasters. BIG motherfuckers. Had one C130 fly over my head on a VERY low pass (Read 150 feet) and I was grounded. My heart must have stopped.
Sadly I didnt make the cut. So I settled for being the guy that fixes the electronics and controls them. Essentially third seat pilot/engineer. (The guy next to the door on planes)
Although, I should add that my first choice was actually Combat Engineer and I nearly got into that but I was ever so bewildered by the cushy hotels of the airforce bases rather than a foxhole and IED.
Okay, I looked over the volume up command, it only increases volume by increments of 10.
It all works, just have to find a way to make it go to max volume now instead of up by 10. Will try it with both codes in 2 minutes and get back to you.
X019 ยท 4 points ยท Posted at 19:04:04 on September 14, 2015 ยท (Permalink)
it only increases volume by increments of 10.
Just run that bit 10 times. It'll max out no matter if it's at 0 or not.
Then once you click it, the volume and song will play simultaneously.
EDIT: I realize I responded to the wrong person so... In response to who I am actually responding to... Running the code 10 times in the instance OP asked for would not work as we're trying to get this all to happen automatically. I wouldnt expect the prankee to start the batch 10 times....
X019 ยท 2 points ยท Posted at 19:52:34 on September 14, 2015 ยท (Permalink)
I wouldnt expect the prankee to start the batch 10 times....
Nor would I. But if you looped it (the volume increase bit) so it automagically upped it 10, 10 times, it'll max out.
Also, if you have the mp3 on the flashdrive and in the same directory as the batch file, you could do something like
start %~dp0Cena.mp3
or maybe
start .Cena.mp3
That should call whatever the MP3 if it's in the same directory as wherever the script is. That way we don't have to worry about what directories are named or writing permissions.
I wrote codes using those two as well but I found it a little faster when the batch knows exactly where to look although those are simpler ways to do it.
I just tested my code on my brother's computer and he got home not expecting a thing. Worked flawlessly.
Speaking of making it loop, my only with that is that in Win10 and 8/8.1 you see the volume slider move for those 10 loops. With just 1 or two it's hardly noticeable.
X019 ยท 1 points ยท Posted at 20:01:25 on September 14, 2015 ยท (Permalink)
I get the same "Var isnt recognized" error too, haven't yet figured out that one yet.
The first error, I have no clue are all the paths to the file correct and the names spelled right?
BaXeD22 ยท 1 points ยท Posted at 15:57:18 on September 16, 2015 ยท (Permalink)
I have found a solution to the 'var' is not recognized error. I will post more once I'm done with classes for today
By fixing this, i made it possible to set the volume to max and play the sound without even having the script open windows media player or some other media player, effectively making the sound unavoidable
Dude, that's totally awesome. Can't wait. By any chance, would you happen to know how to make the script a taskbar pinnable shortcut? I've gotten it to pin to the start menu and as a shortcut on the destop but not on the taskbar oddly.
BaXeD22 ยท 1 points ยท Posted at 19:00:52 on September 16, 2015 ยท (Permalink)
Well, I wrote the batch file on my Win10 machine and transfered it onto a USB, seems to work fine. I even made some improvements to it But I'm working out the kinks.
Oh yeah, I was more speaking of keyboard shortcuts, commands, and the addresses of things within the C drive. I could to be totally offbase, I was just curious if you had any insights as someone who seems like they know their way around a computer.
hydraloo ยท 2 points ยท Posted at 18:53:19 on September 14, 2015 ยท (Permalink)
I always prefer to change the logo to a folder and call it movies or something
[deleted] ยท 2 points ยท Posted at 00:38:37 on September 15, 2015 ยท (Permalink)
[deleted]
Habhome ยท 5 points ยท Posted at 06:42:41 on September 15, 2015 ยท (Permalink)
Because we have yet to invent an AI capable of inferring meaning. Parsing a natural language perfectly is a tremendously difficult task for a computer.
You can of course make a programming language which looks like what you described, but it would still require a very rigid syntax, and be limited to the keywords someone else thought of, so it's functionality would be limited.
It's almost like saying "After centuries of medical advancement why can't we have a book in which a anyone can easily and accurately find how to cure someone who's ill?". It's just such a difficult thing to accomplish it's practically impossible.
Yeah the maker route would be to just cram in a greeting card style chip player and run it off the USB 5V. No actual data would be passed to the computer, just siphon off a little power.
Then once you click it, the volume and song will play simultaneously.
In short, make a batch file using the long code, then make a second batch file telling it to start the first batch and then telling it to start the song based on where it is in your files. Took me about 2 minutes to make after I figured it out.
๐๏ธ Core_i9 ยท 5 points ยท Posted at 19:24:34 on September 14, 2015 ยท (Permalink)
Thanks!
Is there a way to use "this folder" as a directory, as in the folder the .bat file is in, instead of a hard coded location? Because it's going to be on a USB chip and it'll move around a lot.
It should work if you do it like that, yes. That's how I have it set up right now. By "Directory" I meant more like "This place\This Folder\This Folder\Song"
But make sure that if your folder has a space in it that the folder name is in quotes (in the code) or the .bat won't find the file.
J4cku ยท 1 points ยท Posted at 09:06:39 on October 2, 2015 ยท (Permalink)
I have this question - why isn't the volume bat works for me on Win7?
D:\userdata\jleszczy\Desktop>if (@a == @b)
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
D:\userdata\jleszczy\Desktop\test.bat(1, 7) Microsoft JScript compilation error:
Conditional compilation is turned off
The system cannot find the file specified.
Make sure all the script is copied as is or you'll receive errors. Also make sure that all the files you need are there and can be found by the .bat. you need the song as well.
I would also really recommend removing your name from this post as it makes it quite easy for someone to dox you.
VainWyrm ยท 29 points ยท Posted at 15:37:46 on September 14, 2015 ยท (Permalink)
If you embedded it in the firmware of the USB before the storage starts you may be able to bypass Windows' protection against auto running usb data. Sort of Stuxnet-ish. It would be bad behavior though.
๐๏ธ Core_i9 ยท 20 points ยท Posted at 17:49:49 on September 14, 2015 ยท (Permalink)
And how would one do that? I found a stack of 2GB USBs in my basement and I want to put them to good use.
You can't do it with normal USB drives. You'd have to make your own, or use something designed for such nefarious purposes like Rubber Ducky
VainWyrm ยท 8 points ยท Posted at 18:24:49 on September 14, 2015 ยท (Permalink)
Off the top of my head? Take a Linux box and write a program in C that lets you ghost the entire USB including the firmware, run it through a reverse compiler to see what exactly it's up to, and with some trial and error find out where you can successfully insert executable code, then ghost the altered firmware back on the USB. It's not something I've ever done before. If you investigated each of those steps individually there may be tools that would do a lot of the work for you. Be aware that actually using the device on someone almost certainly breaks laws that aren't enforced that often, but are absolutely draconian in their consequences. Prison time.
Maybe you could replace the Device Connect sound with the music? (you would need to have access to the target computer beforehand, and you should probably test it first; and that does nothing to the volume, you'll have to bump it up manually beforehand as well)
edit: also, you might need to convert it to .WAV ; probably a good idea to also normalize the file first to make it louder as well.
ROKMWI ยท 6 points ยท Posted at 21:22:41 on September 14, 2015 ยท (Permalink)
That would play when anything is plugged in, not just a specific usb stick.
I think a simple way to do this would be to hide the Cena file deep in the systems sub folders under a random name, then change specific Microsoft noises to that file.
Won't do the 100% volume. But would be fun and easy
You could potentially make a USB chip that presents itself as a "microphone" but actually plays back the audio clip over in the mic in. If you preconfigure the victim's system to play back microphone input over the speakers that might work, but I don't know if windows will start the audio stream right away or if you have to open some app that needs a mic. Representing itself as a "headset" might work too.
Some common classes [for USB devices] are human-interface devices (HIDs; keyboards, mice), wireless controller (Bluetooth dongles), and mass storage (thumb drives, digital cameras).
The problem is that these USB controllers can have their firmware reprogrammed so that they announce themselves as a different class.
Or, even worse, you could reprogram the firmware of a thumb drive so that it becomes a HID [mouse, keyboard], and can thus issue keyboard and mouse commands to the host machine.
So yes, it's possible to automatically execute code using a simple USB dongle by modifying its firmware to display a mouse or keyboard. But, you'll have to go learn some extremely advanced programming first.
THAT QUESTION WILL BE ANSWERED THIS SUNDAY NIIIIIGHT
[deleted] ยท 2 points ยท Posted at 21:38:53 on September 14, 2015 ยท (Permalink)
[deleted]
๐๏ธ Core_i9 ยท 2 points ยท Posted at 21:46:11 on September 14, 2015 ยท (Permalink)
And how does one do?
[deleted] ยท 2 points ยท Posted at 02:21:35 on September 15, 2015 ยท (Permalink)
Yes, you can do autorun, or you can use microcontroller + really cheap $.50 speaker from digikey = profit.
micajoeh ยท 1 points ยท Posted at 21:52:45 on September 14, 2015 ยท (Permalink)
This is great.
What you could do is start with an autoplay.bat right on the root of the usb drive.
Have that launch another bat file (autoplay will launch automatically, causing it to open this batch file).
This batch file will have to launch some sort of portable media player on the root of the drive, as well as have that media player start with that file ready to go. Will google later. Library doesn't have tabbed browsing.
DQEight ยท 1 points ยท Posted at 02:50:26 on September 15, 2015 ยท (Permalink)
Yep, I didn't know how badly I wanted to do this to a friend until now. Saving this thread for later.
RoneDriver ยท 895 points ยท Posted at 14:48:33 on September 14, 2015 ยท (Permalink)
Unfortunatley, after windows vista Autorun of files on USB has been disabled - you'd just need to make a batch file that opens the mp3 file and adjusts the volume to maximum.
Volume up
Open file
combine the two and you can rename the file to 'google chrome' an dchange the icon to the chrome logo, place it on somebodys pc and everytime they open chrome johncena.mp3 plays
To make it even more fun add the command to actually open chrome aswell, so chrome opens at the same time John Cena plays, this will be more confusing for your victim!
dapht ยท 197 points ยท Posted at 18:05:46 on September 14, 2015 ยท (Permalink)
I pulled off a similar joke recently. I replace my buddy's Witcher 3 shortcut with a batch file that would open the game normally, wait about 10 minutes, then open up a minimized chrome window set to a soundcloud page the Hamster Dance at full volume. If OP has problems getting the mp3 onto their system, that's a good alternative.
thefourthhouse ยท 19 points ยท Posted at 13:05:51 on September 15, 2015 ยท (Permalink)
Playing some Gwent with the hamster dance blaring doesn't sound like a bad time.
Zerim ยท 9 points ยท Posted at 08:50:23 on November 13, 2015 ยท (Permalink)*
I know this is a late reply, but can I have that script if you have it? :D
Angus_Fraser ยท 187 points ยท Posted at 15:29:51 on September 14, 2015 ยท (Permalink)
You are a saint, sir.
RoneDriver ยท 74 points ยท Posted at 16:03:20 on September 14, 2015 ยท (Permalink)
Thanks, that's the kindest thing an internet stranger has ever said to me!
[deleted] ยท 77 points ยท Posted at 16:27:58 on September 14, 2015 ยท (Permalink)
[deleted]
RoneDriver ยท 46 points ยท Posted at 16:57:09 on September 14, 2015 ยท (Permalink)
Who's champ?
MystyrNile ยท 78 points ยท Posted at 17:57:04 on September 14, 2015 ยท (Permalink)
That question will be answered tonight!
At the WWE
SUUUUUPER SLAAAAM!!!
[deleted] ยท 20 points ยท Posted at 18:41:17 on September 14, 2015 ยท (Permalink)
"How do you feel about supporting a decorated marine"
BanenScottCuis ยท 25 points ยท Posted at 19:18:23 on September 14, 2015 ยท (Permalink)
AND HIS NAME IS JOHN CENA!!!
OrangeLlama ยท 10 points ยท Posted at 22:59:20 on September 14, 2015 ยท (Permalink)
BA BADA BAAAAAAA
LyushkaPushka ยท 26 points ยท Posted at 17:19:55 on September 14, 2015 ยท (Permalink)
JOOOOOOHHHNNNN CENAAAAAAA
[deleted] ยท 29 points ยท Posted at 17:49:16 on September 14, 2015 ยท (Permalink)*
[deleted]
GoldenGuy2 ยท 16 points ยท Posted at 17:56:57 on September 14, 2015 ยท (Permalink)
Doot Doot
MrTotoro1 ยท 22 points ยท Posted at 18:16:04 on September 14, 2015 ยท (Permalink)
Thank Mr
JOOOOHHHHNNNNN CENAAAAAAA
[deleted] ยท 9 points ยท Posted at 18:20:24 on September 14, 2015 ยท (Permalink)
Updoot or your time is up
AllAboutMeMedia ยท 2 points ยท Posted at 00:51:27 on September 15, 2015 ยท (Permalink)
Well I think you are a super saint.
MadeSomewhereElse ยท 2 points ยท Posted at 17:57:14 on September 14, 2015 ยท (Permalink)
And so handsome too
Krono5_8666V8 ยท 1 points ยท Posted at 13:59:03 on September 15, 2015 ยท (Permalink)
You're a joy to behold and my life would be less complete without you in it.
ovoKOS7 ยท 3 points ยท Posted at 20:56:26 on September 14, 2015 ยท (Permalink)
I'd lean more toward devil
Devils_halo2k ยท 1 points ยท Posted at 04:36:29 on September 15, 2015 ยท (Permalink)
sorry, were you talking about me?
AnghellicKarma ยท 37 points ยท Posted at 16:58:42 on September 14, 2015 ยท (Permalink)
I have no idea what any of this means, but I would love to make this happen, too.
Even just the thought of dropping off random USB thumb drives somewhere for people to discover, and then this happens, it'd be worth it. Hell, I'd probably do this in my own office.
seemedlikeagoodplan ยท 54 points ยท Posted at 17:56:04 on September 14, 2015 ยท (Permalink)
But they'd be able to find you out pretty quick, because people near you would hear a distant John Cena theme song, paired with the sound of you collapsing in hysterical laughter.
nukeio ยท 23 points ยท Posted at 19:55:50 on September 14, 2015 ยท (Permalink)
Not if you are extra smart about it though. If you self report as if you're device is a keyboard, and you assume that the user is using windows, you can enter text as if the following was typed:
Edit: I'm on Ubuntu, so I can't remember, but there might even be a command to just start explorer. Is it:
By any chance? It's been almost 8 years since I used windows, so I'm pretty rusty.
Ccracked ยท 26 points ยท Posted at 04:17:41 on September 15, 2015 ยท (Permalink)
Linux humble-brag
Kilazur ยท 17 points ยท Posted at 07:14:36 on September 15, 2015 ยท (Permalink)
Hey, he's not openly shitting on Windows as any Linuxian I know would. That's something.
nukeio ยท 3 points ยท Posted at 12:53:31 on September 15, 2015 ยท (Permalink)
Windows would be great if it were open source and more Unix-y. The software it runs is great (Excel, games, Adobe cloud) and it has great 3d support and everything just works. But with the windows 10 updates I'm too worried about privacy to ever think about using it again.
Kilazur ยท 1 points ยท Posted at 13:01:22 on September 15, 2015 ยท (Permalink)
I hope you ain't using Chrome or something (not mentioning Facebook/Twitter/etc). Sadly if you're using Internet today, if you don't take paranoid-like precautions, your privacy is history.
nukeio ยท 3 points ยท Posted at 13:24:10 on September 15, 2015 ยท (Permalink)
Yeah, it's one thing to have my search history out, but always on microphones piss me off.
[deleted] ยท 3 points ยท Posted at 17:11:10 on October 27, 2015 ยท (Permalink)
How do you make the usb id as a keyboard?
nukeio ยท 3 points ยท Posted at 17:30:28 on October 27, 2015 ยท (Permalink)
Check out the USB Boot Keyboard section in the USB Device Class Definition for Human Interface Devices.
[deleted] ยท 2 points ยท Posted at 17:37:44 on October 27, 2015 ยท (Permalink)
Explain a bit more? I thought you needed an arduino?
nukeio ยท 2 points ยท Posted at 21:36:09 on October 27, 2015 ยท (Permalink)
You need to make a circuit that looks like a usb keyboard. In reality, anything can be behind the USB pins though. So if you use an arduino or even some micro code / firmware you can simulate a keyboard typing keys when the device is first plugged in.
[deleted] ยท 3 points ยท Posted at 21:37:41 on October 27, 2015 ยท (Permalink)
But I can't do this with only a usb drive?
nukeio ยท 3 points ยท Posted at 21:43:21 on October 27, 2015 ยท (Permalink)
Ah, I see your question now. No you cannot do this without physically masking the fact that your usb drive as a keyboard. It takes physical hardware circuit changes, not software layer changes. Sorry if I was unclear.
[deleted] ยท 2 points ยท Posted at 23:20:03 on October 27, 2015 ยท (Permalink)
Ok. Could you link me to how to do this with either a raspberry pi(have it) or one of the cheaper arduinos(don't have it)? I'm pretty good at soldering if needed.
nukeio ยท 1 points ยท Posted at 23:38:40 on October 27, 2015 ยท (Permalink)
Email the people at Upverter
thenordicbat ยท 7 points ยท Posted at 20:56:11 on September 14, 2015 ยท (Permalink)
Is there a way to do this for mac users?
FantasticalSuperNova ยท 4 points ยท Posted at 17:36:50 on September 14, 2015 ยท (Permalink)
I'm currently trying to do this but seem to be having issues. I've essentially copied your code into a batch file and it's executes but the music doesn't play nor does the volume go up... Any idea what the issue could be? Do I need to make a batch file for each code and then combine or make them in one?
RoneDriver ยท 16 points ยท Posted at 18:07:11 on September 14, 2015 ยท (Permalink)
I'll be honest, this isn't checked it's a quick copy from stack overflow, a little google-foo will help you out here.
Some things to check are file locations of the song, correct name etc. And also volume control might be handled different in newer versions of windows. Oh and also the default sound application could screw with it a bit.
But the code itself isn't vetted, I'll take a closer look tomorrow if you haven't got it to work.
PS - I work tech support and almost ended this message like answering a support ticket at work... Sigh.
FantasticalSuperNova ยท 4 points ยท Posted at 18:11:11 on September 14, 2015 ยท (Permalink)
That's how you know work is rough. lol
I'm running Win10 so I know that's bound to mess with some stuff. Gonna try it on my brother's PC as it's intended for him before he returns for school and he runs Win8.
I know for sure file locations are correct along with the file name. As it stands volume doesn't go up nor does the song play so I'm gonna guess there's some Win10 sorcery being an asshat with this batch file.
RoneDriver ยท 2 points ยท Posted at 18:19:29 on September 14, 2015 ยท (Permalink)
The open file command should definitely work. I've never tried the volume stuff myself though.
FantasticalSuperNova ยท 6 points ยท Posted at 18:21:50 on September 14, 2015 ยท (Permalink)
Well, I just tried a different code I remembered from fucking around in HS
Very simply just opens the song using mediaplayer. But I'm working on the volume up code right now which seems to be odd and finicky.
Devils_halo2k ยท 1 points ยท Posted at 04:35:57 on September 15, 2015 ยท (Permalink)
this is more command than code persay.
FantasticalSuperNova ยท 1 points ยท Posted at 04:38:22 on September 15, 2015 ยท (Permalink)
True, I suppose I should switch words. Makes it easier for the average user though.
Mind you, I don't have a degree in any computer related subjects/paths. I just write shit for fun sometimes and generally call it all code... I'm a bad person.
Devils_halo2k ยท 3 points ยท Posted at 04:47:59 on September 15, 2015 ยท (Permalink)
not at all, as an IT programmer / tech support analyst that's how i started.
when i was in middle school i would write out scripts in general unix code, on paper, then go home and manually type them into a Telnet server and test them.
still have MANY saved. :)
FantasticalSuperNova ยท 2 points ยท Posted at 04:51:36 on September 15, 2015 ยท (Permalink)
Well then. XD I'm nowhere near that. I just do basic web design for friends, some HTML stuff sometimes batch files and I avoid Java like the plague. But I can code basic C++ and C# as a took a course in HS.
I'm going to be an Avionics Technician with the RCAF .-.
Devils_halo2k ยท 1 points ยท Posted at 04:54:21 on September 15, 2015 ยท (Permalink)
admission: i had to google RCAF
that's really cool, ive always wanted to get my pilots license, but lessons are expensive, and getting fly time would be equally as tricky in my area.
FantasticalSuperNova ยท 1 points ยท Posted at 04:57:50 on September 15, 2015 ยท (Permalink)
That's actually what I initially wanted to do. I first applied for Pilot. I wanted to fly our C130s or a Globemasters. BIG motherfuckers. Had one C130 fly over my head on a VERY low pass (Read 150 feet) and I was grounded. My heart must have stopped.
Sadly I didnt make the cut. So I settled for being the guy that fixes the electronics and controls them. Essentially third seat pilot/engineer. (The guy next to the door on planes)
Devils_halo2k ยท 1 points ยท Posted at 05:51:08 on September 15, 2015 ยท (Permalink)
Still very cool.
FantasticalSuperNova ยท 1 points ยท Posted at 05:00:28 on September 15, 2015 ยท (Permalink)
Although, I should add that my first choice was actually Combat Engineer and I nearly got into that but I was ever so bewildered by the cushy hotels of the airforce bases rather than a foxhole and IED.
Devils_halo2k ยท 1 points ยท Posted at 05:50:55 on September 15, 2015 ยท (Permalink)
Yeah, I can see the two sides of that coin
FantasticalSuperNova ยท 1 points ยท Posted at 05:51:56 on September 15, 2015 ยท (Permalink)
Might not be as "honourable" to most but.. I wouldn't be suited to it I don't think.
Devils_halo2k ยท 1 points ยท Posted at 15:30:49 on September 15, 2015 ยท (Permalink)
It's not for everyone.
FantasticalSuperNova ยท 2 points ยท Posted at 18:33:12 on September 14, 2015 ยท (Permalink)
Okay, I looked over the volume up command, it only increases volume by increments of 10.
It all works, just have to find a way to make it go to max volume now instead of up by 10. Will try it with both codes in 2 minutes and get back to you.
X019 ยท 4 points ยท Posted at 19:04:04 on September 14, 2015 ยท (Permalink)
Just run that bit 10 times. It'll max out no matter if it's at 0 or not.
FantasticalSuperNova ยท 8 points ยท Posted at 19:14:29 on September 14, 2015 ยท (Permalink)
Okay, so I fucked around a bit and came up with one that works PERFECTLY.
I made a set of 2 batch files using the code you provided and then a simple
You want to create a batch file with the text above^ (I'll show later)
Then using:
Create the first batch file and name it Volume.bat
Note how (var i=0; i<50; i++) has a 50 instead of a 5. "i<x" is the increment of increase and "i++" is that increment times the amount of + signs.
Once that file is made create a second batch file that says:
start F:\Users\Directory\"Volume.bat" start c:\Directory\"Song.mp3"
Using your own directories of course.
Then once you click it, the volume and song will play simultaneously.
EDIT: I realize I responded to the wrong person so... In response to who I am actually responding to... Running the code 10 times in the instance OP asked for would not work as we're trying to get this all to happen automatically. I wouldnt expect the prankee to start the batch 10 times....
X019 ยท 2 points ยท Posted at 19:52:34 on September 14, 2015 ยท (Permalink)
Nor would I. But if you looped it (the volume increase bit) so it automagically upped it 10, 10 times, it'll max out.
Also, if you have the mp3 on the flashdrive and in the same directory as the batch file, you could do something like
or maybe
That should call whatever the MP3 if it's in the same directory as wherever the script is. That way we don't have to worry about what directories are named or writing permissions.
FantasticalSuperNova ยท 3 points ยท Posted at 19:55:53 on September 14, 2015 ยท (Permalink)
I wrote codes using those two as well but I found it a little faster when the batch knows exactly where to look although those are simpler ways to do it.
I just tested my code on my brother's computer and he got home not expecting a thing. Worked flawlessly.
Speaking of making it loop, my only with that is that in Win10 and 8/8.1 you see the volume slider move for those 10 loops. With just 1 or two it's hardly noticeable.
X019 ยท 1 points ยท Posted at 20:01:25 on September 14, 2015 ยท (Permalink)
Nice work!
wulululululuu ยท 1 points ยท Posted at 02:35:53 on September 15, 2015 ยท (Permalink)
The volume script isn't working for me. I get the messages:
and
Any ideas?
FantasticalSuperNova ยท 1 points ยท Posted at 02:40:41 on September 15, 2015 ยท (Permalink)
I get the same "Var isnt recognized" error too, haven't yet figured out that one yet.
The first error, I have no clue are all the paths to the file correct and the names spelled right?
BaXeD22 ยท 1 points ยท Posted at 15:57:18 on September 16, 2015 ยท (Permalink)
I have found a solution to the 'var' is not recognized error. I will post more once I'm done with classes for today
By fixing this, i made it possible to set the volume to max and play the sound without even having the script open windows media player or some other media player, effectively making the sound unavoidable
FantasticalSuperNova ยท 1 points ยท Posted at 16:24:13 on September 16, 2015 ยท (Permalink)
Dude, that's totally awesome. Can't wait. By any chance, would you happen to know how to make the script a taskbar pinnable shortcut? I've gotten it to pin to the start menu and as a shortcut on the destop but not on the taskbar oddly.
BaXeD22 ยท 1 points ยท Posted at 19:00:52 on September 16, 2015 ยท (Permalink)
http://superuser.com/questions/100249/how-to-pin-either-a-shortcut-or-a-batch-file-to-the-new-windows-7-taskbar
These instructions say they are for windows 7 but have worked for me using windows 8.1
FantasticalSuperNova ยท 1 points ยท Posted at 19:36:53 on September 16, 2015 ยท (Permalink)
Awesome. Thanks. Assuming they work for 8 1 they should be okay for win10 also. Maybe.
FantasticalSuperNova ยท 1 points ยท Posted at 02:42:15 on September 15, 2015 ยท (Permalink)
May have found the issue. Try adding /@cc_on @/ to the beginning of the code. Tells the file to turn on Conditional Compiling.
BaXeD22 ยท 1 points ยท Posted at 15:57:15 on September 16, 2015 ยท (Permalink)
I have found a solution to the 'var' is not recognized error. I will post more once I'm done with classes for today
wings_like_eagles ยท 1 points ยท Posted at 04:15:45 on September 15, 2015 ยท (Permalink)
I'm a total newb, but I get the impression that windows 8 is even more different from the older versions than 10 is. Is that just me?
FantasticalSuperNova ยท 2 points ยท Posted at 04:23:21 on September 15, 2015 ยท (Permalink)
Well, I wrote the batch file on my Win10 machine and transfered it onto a USB, seems to work fine. I even made some improvements to it But I'm working out the kinks.
wings_like_eagles ยท 1 points ยท Posted at 14:43:19 on September 15, 2015 ยท (Permalink)
Oh yeah, I was more speaking of keyboard shortcuts, commands, and the addresses of things within the C drive. I could to be totally offbase, I was just curious if you had any insights as someone who seems like they know their way around a computer.
hydraloo ยท 2 points ยท Posted at 18:53:19 on September 14, 2015 ยท (Permalink)
I always prefer to change the logo to a folder and call it movies or something
[deleted] ยท 2 points ยท Posted at 00:38:37 on September 15, 2015 ยท (Permalink)
[deleted]
Habhome ยท 5 points ยท Posted at 06:42:41 on September 15, 2015 ยท (Permalink)
Because we have yet to invent an AI capable of inferring meaning. Parsing a natural language perfectly is a tremendously difficult task for a computer.
You can of course make a programming language which looks like what you described, but it would still require a very rigid syntax, and be limited to the keywords someone else thought of, so it's functionality would be limited.
It's almost like saying "After centuries of medical advancement why can't we have a book in which a anyone can easily and accurately find how to cure someone who's ill?". It's just such a difficult thing to accomplish it's practically impossible.
SirMildredPierce ยท 2 points ยท Posted at 07:45:51 on September 15, 2015 ยท (Permalink)
Unfortunately for who? :p
[deleted] ยท 2 points ยท Posted at 16:06:13 on October 7, 2015 ยท (Permalink)
I'm really stupid. How can I use this to do what you're talking about?
emongev ยท 2 points ยท Posted at 16:48:19 on October 2, 2015 ยท (Permalink)
I made a download and execute version of this, i'd appreciate some testing from windows users since i made this in a hurry and made some asumptions :P
https://dl.dropboxusercontent.com/u/18417484/jcprank.zip
ColonelCoon ยท 1 points ยท Posted at 19:55:52 on September 14, 2015 ยท (Permalink)
god bless you
TurkFebruary ยท 1 points ยท Posted at 00:05:08 on September 15, 2015 ยท (Permalink)
The path doesn't work anymore care to repost?
saxybandgeek1 ยท 1 points ยท Posted at 13:29:17 on September 15, 2015 ยท (Permalink)
Definitely not trying this while the bf is out
swaggy_butthole ยท 1 points ยท Posted at 03:43:33 on February 20, 2016 ยท (Permalink)
RemindMe! March 30th
bobandjoe12 ยท 1 points ยท Posted at 21:01:53 on February 28, 2016 ยท (Permalink)
Instead of opening an mp3 file you can set it to go to instantcena.com
(I did the same thing to a teacher of mine but set a 30 min delay so we'd be in the middle of a lecture)
Leporad ยท -2 points ยท Posted at 21:47:09 on September 14, 2015 ยท (Permalink)
So it would only work on xp and lower?
API-Beast ยท 129 points ยท Posted at 16:26:10 on September 14, 2015 ยท (Permalink)*
If the USB chip has its own speakers than anything is possible, else it would be OS dependent.
nutstrength ยท 30 points ยท Posted at 18:02:23 on September 14, 2015 ยท (Permalink)
Yeah the maker route would be to just cram in a greeting card style chip player and run it off the USB 5V. No actual data would be passed to the computer, just siphon off a little power.
marcusklaas ยท 45 points ยท Posted at 16:37:13 on September 14, 2015 ยท (Permalink)
Its own speakers.
k4s ยท 16 points ยท Posted at 16:55:21 on September 14, 2015 ยท (Permalink)
it is own speakers?
Ozzimo ยท 26 points ยท Posted at 17:10:20 on September 14, 2015 ยท (Permalink)
It is known, speakers.
Asterix1806 ยท 14 points ยท Posted at 17:47:41 on September 14, 2015 ยท (Permalink)
Ozone: Speak Earths
chamington ยท 14 points ยท Posted at 18:49:21 on September 14, 2015 ยท (Permalink)
O-zone: dragostea din tei
Teslatronic ยท 7 points ยท Posted at 22:21:12 on September 14, 2015 ยท (Permalink)
Numa numa yey
chamington ยท 6 points ยท Posted at 22:26:10 on September 14, 2015 ยท (Permalink)
Numa numa iei
Mynotoar ยท 3 points ยท Posted at 23:52:24 on September 14, 2015 ยท (Permalink)
Man, Reddit threads and Chinese Whispers are, like, best buddies.
chamington ยท 3 points ยท Posted at 00:39:41 on September 15, 2015 ยท (Permalink)
iei
Ergheis ยท 6 points ยท Posted at 12:48:48 on September 15, 2015 ยท (Permalink)
If someone made a kickstarter for USB mini speakers that played John Cena's theme when you plugged it in, would you support it
bearjuani ยท 34 points ยท Posted at 14:20:10 on September 14, 2015 ยท (Permalink)
No unfortunately, windows removed autoplay since it was a security risk (if you can play a song you can also run a keylogger to steal bank details)
You could set up a website that plays it on full volume though, then just go to that: https://goo.gl/KU7qLP is the youtube video
[deleted] ยท 2 points ยท Posted at 15:38:43 on September 14, 2015 ยท (Permalink)
[removed]
[deleted] ยท 33 points ยท Posted at 15:48:57 on September 14, 2015 ยท (Permalink)
DON'T WHAT???? I NEED TO KNOW
[deleted] ยท 9 points ยท Posted at 16:14:33 on September 14, 2015 ยท (Permalink)
Maybe he said "delete system 32" or something
bearjuani ยท 11 points ยท Posted at 16:28:54 on September 14, 2015 ยท (Permalink)
I literally just linked to the john cena music on youtube
[deleted] ยท 1 points ยท Posted at 16:29:05 on September 14, 2015 ยท (Permalink)
[removed]
๐๏ธ Core_i9 ยท 2 points ยท Posted at 17:51:02 on September 14, 2015 ยท (Permalink)
Mother fucker.
FantasticalSuperNova ยท 21 points ยท Posted at 19:19:21 on September 14, 2015 ยท (Permalink)
Okay, so I fucked around a bit and came up with one that works PERFECTLY.
I made a set of 2 batch files using the code u/RoneDriver provided and then a simple
You want to create a batch file with the text above^ (I'll show later)
Then using copy/paste:
Create the first batch file and name it Volume.bat
Note how (var i=0; i<50; i++) has a 50 instead of a 5. "i<x" is the increment of increase and "i++" is that increment times the amount of + signs.
Once that file is made create a second batch file that says:
Using your own directories of course.
Then once you click it, the volume and song will play simultaneously.
In short, make a batch file using the long code, then make a second batch file telling it to start the first batch and then telling it to start the song based on where it is in your files. Took me about 2 minutes to make after I figured it out.
๐๏ธ Core_i9 ยท 5 points ยท Posted at 19:24:34 on September 14, 2015 ยท (Permalink)
Thanks!
Is there a way to use "this folder" as a directory, as in the folder the .bat file is in, instead of a hard coded location? Because it's going to be on a USB chip and it'll move around a lot.
FantasticalSuperNova ยท 2 points ยท Posted at 19:33:46 on September 14, 2015 ยท (Permalink)
It should work if you do it like that, yes. That's how I have it set up right now. By "Directory" I meant more like "This place\This Folder\This Folder\Song"
But make sure that if your folder has a space in it that the folder name is in quotes (in the code) or the .bat won't find the file.
J4cku ยท 1 points ยท Posted at 09:06:39 on October 2, 2015 ยท (Permalink)
I have this question - why isn't the volume bat works for me on Win7?
FantasticalSuperNova ยท 1 points ยท Posted at 15:35:08 on October 2, 2015 ยท (Permalink)
Make sure all the script is copied as is or you'll receive errors. Also make sure that all the files you need are there and can be found by the .bat. you need the song as well.
I would also really recommend removing your name from this post as it makes it quite easy for someone to dox you.
VainWyrm ยท 29 points ยท Posted at 15:37:46 on September 14, 2015 ยท (Permalink)
If you embedded it in the firmware of the USB before the storage starts you may be able to bypass Windows' protection against auto running usb data. Sort of Stuxnet-ish. It would be bad behavior though.
๐๏ธ Core_i9 ยท 20 points ยท Posted at 17:49:49 on September 14, 2015 ยท (Permalink)
And how would one do that? I found a stack of 2GB USBs in my basement and I want to put them to good use.
cincodenada ยท 33 points ยท Posted at 18:01:45 on September 14, 2015 ยท (Permalink)
You can't do it with normal USB drives. You'd have to make your own, or use something designed for such nefarious purposes like Rubber Ducky
VainWyrm ยท 8 points ยท Posted at 18:24:49 on September 14, 2015 ยท (Permalink)
Off the top of my head? Take a Linux box and write a program in C that lets you ghost the entire USB including the firmware, run it through a reverse compiler to see what exactly it's up to, and with some trial and error find out where you can successfully insert executable code, then ghost the altered firmware back on the USB. It's not something I've ever done before. If you investigated each of those steps individually there may be tools that would do a lot of the work for you. Be aware that actually using the device on someone almost certainly breaks laws that aren't enforced that often, but are absolutely draconian in their consequences. Prison time.
wings_like_eagles ยท 3 points ยท Posted at 04:17:59 on September 15, 2015 ยท (Permalink)*
Why was the above comment downvoted? Seriously, there could totally be a good reason I'm not catching.
Edit: Yay! Positive score.
Also, I accidentally a word.
Devils_halo2k ยท 2 points ยท Posted at 04:30:06 on September 15, 2015 ยท (Permalink)
i upvoted it for visibility, but i think we need help.
vrobo ยท 2 points ยท Posted at 23:05:03 on September 14, 2015 ยท (Permalink)
Bad USB
[deleted] ยท 27 points ยท Posted at 15:43:03 on September 14, 2015 ยท (Permalink)
[removed]
[deleted] ยท 18 points ยท Posted at 15:55:56 on September 14, 2015 ยท (Permalink)
[removed]
[deleted] ยท 7 points ยท Posted at 16:01:08 on September 14, 2015 ยท (Permalink)
[removed]
TiagoTiagoT ยท 7 points ยท Posted at 20:09:30 on September 14, 2015 ยท (Permalink)
Maybe you could replace the Device Connect sound with the music? (you would need to have access to the target computer beforehand, and you should probably test it first; and that does nothing to the volume, you'll have to bump it up manually beforehand as well)
edit: also, you might need to convert it to .WAV ; probably a good idea to also normalize the file first to make it louder as well.
ROKMWI ยท 6 points ยท Posted at 21:22:41 on September 14, 2015 ยท (Permalink)
That would play when anything is plugged in, not just a specific usb stick.
TiagoTiagoT ยท 9 points ยท Posted at 22:47:47 on September 14, 2015 ยท (Permalink)
Right, I forgot to mention that detail.
Devils_halo2k ยท 5 points ยท Posted at 04:25:47 on September 15, 2015 ยท (Permalink)
which could actually make it just as fun, if not more
ROKMWI ยท 2 points ยท Posted at 19:50:41 on September 15, 2015 ยท (Permalink)
True, unless OP wanted to have a USB stick always on standby in case he wants to hear the John Cena themesong on full volume.
Devils_halo2k ยท 1 points ยท Posted at 19:56:49 on September 15, 2015 ยท (Permalink)
I think a simple way to do this would be to hide the Cena file deep in the systems sub folders under a random name, then change specific Microsoft noises to that file.
Won't do the 100% volume. But would be fun and easy
mommy2libras ยท 8 points ยท Posted at 14:09:36 on September 14, 2015 ยท (Permalink)
I also need to know this. And where I can get one.
๐๏ธ Core_i9 ยท 7 points ยท Posted at 17:50:34 on September 14, 2015 ยท (Permalink)
I'm gonna try making it myself based on the instructions in another comment.
seemedlikeagoodplan ยท 9 points ยท Posted at 17:57:09 on September 14, 2015 ยท (Permalink)
OP, please post an update if this works.
mommy2libras ยท 2 points ยท Posted at 18:08:47 on September 14, 2015 ยท (Permalink)
Awesome. Please update if you do.
nomequeeulembro ยท 1 points ยท Posted at 21:08:25 on November 10, 2015 ยท (Permalink)
OP, did it work?
Cameron8508 ยท 1 points ยท Posted at 23:07:35 on November 21, 2015 ยท (Permalink)
op?
hookedOnOnyx ยท 6 points ยท Posted at 16:23:45 on September 14, 2015 ยท (Permalink)
You could potentially make a USB chip that presents itself as a "microphone" but actually plays back the audio clip over in the mic in. If you preconfigure the victim's system to play back microphone input over the speakers that might work, but I don't know if windows will start the audio stream right away or if you have to open some app that needs a mic. Representing itself as a "headset" might work too.
Lycanther-AI ยท 3 points ยท Posted at 17:24:49 on September 14, 2015 ยท (Permalink)
How about a motivational chip that plays Shia Labeouf. Can that be done?
Devils_halo2k ยท 1 points ยท Posted at 04:27:31 on September 15, 2015 ยท (Permalink)
JUST DO IT!
Lycanther-AI ยท 1 points ยท Posted at 21:45:20 on September 15, 2015 ยท (Permalink)
Nothing is impossible.
kn33 ยท 3 points ยท Posted at 19:04:04 on September 14, 2015 ยท (Permalink)
Sure. You'd basically be taking the device from one of those musical greeting cards, with the John Cena theme on it, powered over USB
Projectile_Muffin ยท 3 points ยท Posted at 23:03:30 on September 14, 2015 ยท (Permalink)
So yes, it's possible to automatically execute code using a simple USB dongle by modifying its firmware to display a mouse or keyboard. But, you'll have to go learn some extremely advanced programming first.
http://www.extremetech.com/computing/187279-undetectable-indefensible-security-flaw-found-in-usb-its-time-to-get-your-ps2-keyboard-out-of-the-cupboard
agoesin ยท 3 points ยท Posted at 23:43:34 on September 14, 2015 ยท (Permalink)
Better yet, just change their system sounds :P
BoboTheTalkingClown ยท 3 points ยท Posted at 00:16:15 on September 15, 2015 ยท (Permalink)
...I sense this request may not be made with the purest of intentions.
๐๏ธ Core_i9 ยท 6 points ยท Posted at 00:32:03 on September 15, 2015 ยท (Permalink)
You mean to say I'm gonna buy chips identical to my friend's and replace his with the CENA Chip? Why would you even think that?
mrkleen340 ยท 5 points ยท Posted at 02:01:10 on September 15, 2015 ยท (Permalink)
FTFY
UnderwaterDialect ยท 3 points ยท Posted at 01:31:01 on September 15, 2015 ยท (Permalink)
THAT QUESTION WILL BE ANSWERED THIS SUNDAY NIIIIIGHT
[deleted] ยท 2 points ยท Posted at 21:38:53 on September 14, 2015 ยท (Permalink)
[deleted]
๐๏ธ Core_i9 ยท 2 points ยท Posted at 21:46:11 on September 14, 2015 ยท (Permalink)
And how does one do?
[deleted] ยท 2 points ยท Posted at 02:21:35 on September 15, 2015 ยท (Permalink)
Yes, you can do autorun, or you can use microcontroller + really cheap $.50 speaker from digikey = profit.
micajoeh ยท 1 points ยท Posted at 21:52:45 on September 14, 2015 ยท (Permalink)
This is great.
What you could do is start with an autoplay.bat right on the root of the usb drive.
Have that launch another bat file (autoplay will launch automatically, causing it to open this batch file).
This batch file will have to launch some sort of portable media player on the root of the drive, as well as have that media player start with that file ready to go. Will google later. Library doesn't have tabbed browsing.
DQEight ยท 1 points ยท Posted at 02:50:26 on September 15, 2015 ยท (Permalink)
Yep, I didn't know how badly I wanted to do this to a friend until now. Saving this thread for later.
Narwhalbaconguy ยท 1 points ยท Posted at 04:51:18 on September 15, 2015 ยท (Permalink)
I don't know, but I love that idea.
[deleted] ยท 1 points ยท Posted at 14:45:44 on January 25, 2016 ยท (Permalink)
/r/UnexpectedCena