PDA

View Full Version : Misc Batch Files



Brut
03-07-2006, 11:02 AM
I have a web design class I go to. Theres a guy on the other side of the room that uses batch files to shut down your computer. He won't tell me how to do it. He takes the numbers off the sticker thats on your computer and puts them in. He saves them a weird way in notepad and something happens is DOS. Does anyone know how to do that? I know I gave a pretty shitty description. Also if anyone knows how to send net sends or whatever there called. post up please

v3rd1g0
03-07-2006, 11:48 AM
couple of questions: what os? second what is on the tag? my guess is computer name or network address. if it's xp you can do it through a simple dos window instead of using a batch file. using a batch file was more for 95, 98, and me.

Brut
03-07-2006, 12:00 PM
its XP

Brut
03-07-2006, 12:01 PM
its on a network but im not sure what tag's he is using

v3rd1g0
03-07-2006, 02:05 PM
i'm not gonna tell you straight up how to do it b/c that kinda how i am lol, but you can google it and find some info. experiment and play around with what you find.... alot more fun learning on your own :-D

btw saved what you are doing b4 you start to play around b/c you might lose something ur working on.

4dmin
03-07-2006, 03:20 PM
do you know his ip address? get me his ip address and i'll give you ways to get him back ;)

to get address:

1) go to his computer
2) start > run > cmd
3) ipconfig
4) enter

192.168.1.1 <<< variation like that ;)

v3rd1g0
03-07-2006, 04:12 PM
if he's at a public school then they might block out the cmd promt. actually i just thought of something lol. if the other kid was using a .bat file then they probably do block the cmd propt. I know in my high school they tried to block a lot for regular users

green91
03-07-2006, 06:37 PM
there isnt a command implemented into XP that easily allows remote computers to shut others down, id imagine he is running some sort of trojan on the systems or is using your school system's network control software if they have any

Brut
03-07-2006, 06:39 PM
i can get his isp address. i did the google search thing on trying to learn how to do some things. but its really confusing and some sites dont tell me how to do anything. Ill keep looking

v3rd1g0
03-07-2006, 07:40 PM
there isnt a command implemented into XP that easily allows remote computers to shut others down, id imagine he is running some sort of trojan on the systems or is using your school system's network control software if they have any

how much do you want to bet?

try out: shutdown -r -m (address here: eg: \\192.168.1.96)

that will shutdown and restart the remote computer

if you open up notepad and type:

shutdown -r -m \\192.168.1.96
exit

the save it as a .bat then open it, it will do the same exact thing

i just double checked it with my server and both methods worked. my computer is win xp pro, my server is windows server 2003 enterprise edition...

Bacon: what school do you go to? If it's in gwinnett then there are a lot of back ways around things. gwinnett IT specialist = total noobs

threehundred
03-07-2006, 08:35 PM
shit, just go over there and punch buddy in the face

v3rd1g0
03-07-2006, 09:09 PM
hahahaha that works too

4dmin
03-07-2006, 10:16 PM
if you can get to a cmd prompt net send him and repeat it to infinity .... bahhh thats so annoying

Brut
03-08-2006, 10:46 AM
i got mill creek high school witch is in gwinnett county

Brut
03-08-2006, 10:56 AM
it keeps doing this when i try ithttp://i9.photobucket.com/albums/a99/bb42004984/bat.jpg

Brut
03-08-2006, 10:58 AM
just says H:\Web Design>shutdown -r -m \\168.9.212.7

green91
03-08-2006, 05:21 PM
thats because its echoing the command you placed in the .bat file. if u want it to stop saying that, type @echo off in the top of the .bat file. i think for that remote shutdown command to work youve gotta have remote administrative privleges or something.. i cannot imaging them implementing an open remote shutdown command.

v3rd1g0
03-08-2006, 08:13 PM
gwinnett has done some stupid things. last year they created an account for all seniors to log in under to take the EOCT's and they gave it admin piv..... that's how i got a copy of my trig final exam. don't believe me? i'll send you a copy lol. with the admin priv you are able to access all folders on the network: teachers, students everything. not just view but write aswell lol.

Wedge
03-16-2006, 10:24 AM
if he gets your address and it's probably on dhcp just type in:

ipconfig /renew

it changes your ip address (if it's on dhcp) and he would have to keep going back to get it.. you can also set that up to run in windows as a schedualed task every 5 minutes to make it keep changing

v3rd1g0
03-16-2006, 11:04 AM
i dont' think the school would be on dhcp because its too much of a security hazard. if they had it on then students could continuelly change their ips when they are messing around on the network.

green91
03-16-2006, 05:50 PM
security hazard? thats crazy. typically even with a dhcp renew on a LAN it will give the same IP back to the same MAC (hardware) address. how would dhcp be a security hazard? the idea that they would individually set up static ips for each of several thousand computers is rediculous.

ReCkLe5s
03-18-2006, 04:08 PM
no static ip but damn near close i would think that each node/switch would have its on static ip with hopfully mac filtering.. so no swinging dick could jack in to the network.. but hs are known for super lax computer security

Brut
03-18-2006, 04:11 PM
for some reason when i check every1's computers they have the same isp as everyone else. i gave up on this. i just play the falling sand game for now until they block it

green91
03-18-2006, 04:30 PM
DHCP with mac filtering would be more effective. static ips from a network admin standpoint is a nightmare.