Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 544

How to Invisibly Execute BAT File in the Background

by Pentester708 - 03 June, 2020 - 07:49 AM
This post is by a banned member (Pentester708) - Unhide
652
Posts
482
Threads
5 Years of service
#1
1. Let say I will ping google.com by utilizing BAT script.

ping
www.google.com

and then save as ping.bat

2. When we double click the ping.bat we've just created, a command prompt window will popped out and pinging
google.com.
and the window will automaticaly closed after the execution is complete.

3. We will utilize Windows Script Host RUN method to invisibly execute BAT file in the background. This is the script

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\ping.bat" & Chr(34), 0
Set WshShell = Nothing


save the script as hidden.vbs with .vbs extension.

4. I've modified the BAT script a little bit, because we need to check whether the script was successfully executed or not.

ipconfig > result.txt

all IP configuration result will be saved into result.txt file.

5. When we execute the hidden.vbs, no window popped out and if our script was successfully executed in the background, in our folder location should have a new file result.txt contained with information about windows ip configuration.
[Image: Udpc9Lb.gif]
Telegram: https://t.me/candycainlobbies
Ad by brocain
This post is by a banned member (Zer0Day) - Unhide
Zer0Day  
Contributor
852
Posts
313
Threads
5 Years of service
#2
I probably would of been very interested in this if this were many years ago and i was in 6th grade, but good thread anyways sirs.
PepeGlad
This post is by a banned member (Pentester708) - Unhide
652
Posts
482
Threads
5 Years of service
#3
(03 June, 2020 - 07:57 AM)Zer0Day Wrote: Show More
I probably would of been very interested in this if this were many years ago and i was in 6th grade, but good thread anyways sirs.

i knew this is 9th tbh
but its for the 90% public here who still got no idea of it even after reading the thread
[Image: Udpc9Lb.gif]
Telegram: https://t.me/candycainlobbies
Ad by brocain

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)