Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 815 Vote(s) - 3.49 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Batch script for user/password read from file

#1
My script works perfectly but I need to share this script in the company for all users, the problem is that the user and password (my credentials are in the cmd line ) like :

mycmd.exe -h "user:[email protected]:8086"

I need to make this script to read user and password from a file (.txt, .ini), where everyone puts their credentials in the file.

I have tried to find something similar on the internet but I cannot find anything.
Reply

#2
Like this :

Data.ini :

UserID=Toto
Password=1234

Auth.bat:

@echo off
for /f "delims=" %%a in (Data.ini) do set %%a
mycmd.exe -h "%UserID%:%Password%@10.0.0.1:8086"
Reply

#3
**Data.bat**

```
set UserID=abcd
set Password=1234
set Server=xyz
```

**Auth.bat**

```
call D:\Scripts\Data.bat
sqlplus %UserID%/%Password%@%Server%
```
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through