Questions tagged [batch]

A plain text file containing a list of commands to be executed in sequence by the command line interpreter.

A batch file is a plain text file containing a list of commands to be executed in sequence by the command line interpreter.

10 questions
2
votes
1 answer

Authentication for a batch script

It seems amazing that there is no industry accepted best practice for this problem yet (or maybe just one I'm not aware of): What is the most secure way for a batch script, a program needing to connect to a resource (E.g. database) via a non user…
Rakkhi
  • 5,783
  • 1
  • 23
  • 47
1
vote
0 answers

Connect to a wifi through code

Is there any way a person could write a software using for example C++ to connect to a wifi completely by using code?
John Smith
  • 157
  • 1
  • 5
1
vote
0 answers

gpg won't find public key if not in interactive session

How to make imported public key available after logging off? I have a Powershell process that encrypts the file (recipient was masked): Start-Process "gpg.exe" -ArgumentList "--batch --yes --always-trust --recipient 3******D --log-file l.txt…
1
vote
2 answers

Is there a secure way to run a bat file from a Java program without command injection vulnerability?

Since using Runtime.exec() and ProcessBuilder trigger command injection vulnerability in static analyzing tools, is there any other recommended secure way to execute a bat file from a Java program? Java code:…
pasanbsb
  • 113
  • 1
  • 4
1
vote
1 answer

Full shell from pingit application

when I entered 127.0.0.1 the result was:- Pinging 127.0.0.1 with 32 bytes of data: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Ping statistics for 127.0.0.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in…
Aayush
  • 557
  • 6
  • 17
1
vote
2 answers

Why would a bat file that just starts a program be considered a virus?

My friend's computer was having a lot of viruses so he wanted me to download an operating system for him. So he gave me a flash memory. When I opened the flash my antivirus (Kaspersky Total Security) kept removing it saying it was…
Qeaxe
  • 11
  • 2
0
votes
4 answers

Can a batch file download a file to infect a computer?

Is it possible to write a batch script that can download some code from the web and infect a computer? Can you explain it briefly?
Digital fire
  • 3,126
  • 5
  • 31
  • 44
0
votes
2 answers

Have I created some kind of malware?

I am quite new to this type of stuff and I'm experimenting a little bit. This weekend I had some spare time and decided to joke around with VBScript and powershell. What I did is I wrote a VBScript which can be run as normal user or as administrator…
Anonymous
  • 1
  • 1
0
votes
1 answer

How to safely execute batch file viruses for practice?

I'm following a tutorial on fork bomb and thought it was pretty interesting. TL;DR: It's basically just a program that replicates itself until the computer freezes/crashes. I want to see how it actually looks like when executing but don't want to…
MrRobot
  • 43
  • 3
-2
votes
1 answer

How to secure batch script with compiler (not compressor) in Windows?

Batch script, a.k.a. bat or cmd, is good - easy to learn, easy to code, easy to use, easy to distrubute. However it lets coders down when they need to achieve something complex in batch script. The more important thing is that it encounters a…
ll55
  • 103
  • 2