LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 11-12-2007, 05:45 PM   #1
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
launching a window's batch file from linux


Hello linux fans,

I was watching some videos on youtube.com on playing pranks on windows machines, like fake error messages, shutdowns, fake deletion of files, etc...

Anyway, these pranks are simple batch files, The trick is to get my family to click on the icon without them being suspicious.

Is there a way, that I can launch the batch file from my linux machine?

My family likes to play jokes on each other
 
Old 11-12-2007, 05:50 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
You could try setting up an ssh server on the windows box (might require setting up cygwin), then login over ssh and try running the batch file. Not sure if it'll work or not...
 
Old 11-12-2007, 06:05 PM   #3
corbintechboy
Member
 
Registered: Sep 2003
Location: Kentucky
Posts: 480
Blog Entries: 1

Rep: Reputation: 51
Get a fake IE or Firefox icon (whatever they use), remove the old real icon, Place a launcher to file on the windows desktop (shortcut), use the fake icon. When they click it the batch file will run...lol that would work .
 
Old 11-12-2007, 06:16 PM   #4
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Original Poster
Rep: Reputation: 57
thanks pljvaldez and corbintechboy for your suggestions. I think I'll try the latter one using fake icons as it is more simpler to do.

Of course, I'm open to any more suggestions. Thanks in advance
 
Old 11-12-2007, 06:18 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I wonder if there's a cron equivalent for Windows. Then you could make it pop up every so often with no user interaction.

Last edited by pljvaldez; 11-12-2007 at 06:20 PM.
 
Old 11-13-2007, 06:49 AM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
I don't want to be seen as condoning or encouraging adolescent pranks, but cron is available with Cygwin.
(Oh God, I'm starting to sound my age...)

Last edited by brianL; 11-13-2007 at 10:32 AM.
 
Old 11-13-2007, 09:16 AM   #7
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 278

Rep: Reputation: 41
Codepage

One of my favorites has always been to load a different codepage/national language support depending on login. So if Stevie logs into my computer he gets a German keyboard, fonts, and menus. When Joey logs in, he gets Russian, etc. Non-destructive but always good for a laugh.
 
Old 11-13-2007, 11:30 AM   #8
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Quote:
Originally Posted by pljvaldez
I wonder if there's a cron equivalent for Windows.
Under Control Panel double click on the "scheduled tasks", but make sure you are in the classic view. That is assuming you are running XP or later. In Windows2000 it is already in the 'classic' view and it is easier to find.
 
Old 12-29-2007, 08:40 AM   #9
theriddle
Member
 
Registered: Jun 2007
Distribution: Gentoo
Posts: 172

Rep: Reputation: 30
Quote:
Originally Posted by dv502 View Post
Is there a way, that I can launch the batch file from my linux machine?
You could use a shell script instead of a batch file. If it has to be batch, wine can run batch files.

To get any full screen errors (kernel panic?):
Code:
#!/bin/sh
killall kicker # or gnome-panel
kstart --fullscreen --activate --ontop display kpanic.jpg
Just make sure the image is the same size as your monitor .
 
Old 12-29-2007, 09:26 AM   #10
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Original Poster
Rep: Reputation: 57
thanks theriddle for your input.

It was nothing important, just wanted to play some pranks on my family members. Lots of fake viruses and other pranks are on youtube writing simple batch files. lol
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-launching a file in Linux(Debian) on booting kushalkoolwal Programming 3 11-06-2005 06:46 PM
backing up linux with a batch file... RaVensRealm Linux - Newbie 6 04-16-2003 08:59 PM
Like MS-DOS batch file but for Linux? rverlander Programming 2 06-23-2002 02:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 06:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration