Search found 36 matches
- 29 Oct 2016 13:52
- Forum: DOS Batch Forum
- Topic: HTML Batch String Parser
- Replies: 3
- Views: 4069
Re: HTML Batch String Parser
There is a bug in your code: The percentage sign ('%') cannot be escaped using "^%", it has to be escaped using "%%". penpen Command prompt says C:\Users\__>set a=b C:\Users\__>echo ^%a^% %a% C:\Users\__>echo %%a%% %b% :\Users\__> But a batch file crashes with ^%a^% Is there any...
- 29 Oct 2016 12:30
- Forum: DOS Batch Forum
- Topic: HTML Batch String Parser
- Replies: 3
- Views: 4069
HTML Batch String Parser
This HTML page allows you to type something in and it'll automatically parse it as a safe to echo string. <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script> //Definer Functions String.prototype.replaceAll = function(search, repla...
- 29 Oct 2016 12:27
- Forum: DOS Batch Forum
- Topic: Metadata for batch files
- Replies: 4
- Views: 5165
Re: Metadata for batch files
We are already using this concept to include things like 3rd party utilities and images in batch files. So I am not understanding how this is any different then that same technique. What extra functionality does this provide? You can store variables inside of a batch file instead of in other files,...
- 29 Oct 2016 11:59
- Forum: DOS Batch Forum
- Topic: Metadata for batch files
- Replies: 4
- Views: 5165
Metadata for batch files
Hello! Until today, we've all been storing batch file data in other files, making portability of data harder. Today I bring to you a simple solution that stores metadata inside of a batch file, so you don't create any files but you still store data. The following technique only requires some extra c...
- 20 Oct 2016 20:44
- Forum: DOS Batch Forum
- Topic: Prevent Keylogging
- Replies: 1
- Views: 2155
Prevent Keylogging
Hello, I have a simple login application that uses MD5 hash to hash user logins, then compare them. After they login they get to go do stuff. What I'm worried about is the user running a malicious batch file. If you spam input in CMD and type doskey /history a history of what you typed will be outpu...
- 20 Oct 2016 14:23
- Forum: DOS Batch Forum
- Topic: RdRand.exe: Robust random numbers for Batch files
- Replies: 19
- Views: 26034
Re: RdRand.exe: Robust random numbers for Batch files
@Aacini
Can you point me towards the direction of AMD & Intel's guide for assembly?
Even if you learned it 30 years ago that's fine, what matters is you program in assembly.
EDIT: On the right is echo %errorlevel%, it just doesn't seem that way.
Can you point me towards the direction of AMD & Intel's guide for assembly?
Even if you learned it 30 years ago that's fine, what matters is you program in assembly.
EDIT: On the right is echo %errorlevel%, it just doesn't seem that way.
- 20 Oct 2016 12:35
- Forum: DOS Batch Forum
- Topic: SHA256 Hash in batch
- Replies: 5
- Views: 8724
Re: SHA256 Hash in batch
Squashman wrote:SirJosh3917 wrote:You gave me a link to a batch file that uses certutil to do a SHA512 hash on a string.
You didn't read all the links in that thread.
Ok sorry.
The MD5 hash tool seems to be what I need, but I forgot, is the MD5 hash "de-hashable"? Or do you "dehash" it by brute forceing?
- 20 Oct 2016 12:24
- Forum: DOS Batch Forum
- Topic: RdRand.exe: Robust random numbers for Batch files
- Replies: 19
- Views: 26034
Re: RdRand.exe: Robust random numbers for Batch files
I'm simply amazed you know assembly, I want to learn that language badly
Do you have any links to guides I can see to learn assembly?
Do you have any links to guides I can see to learn assembly?
- 20 Oct 2016 12:22
- Forum: DOS Batch Forum
- Topic: SHA256 Hash in batch
- Replies: 5
- Views: 8724
Re: SHA256 Hash in batch
Did you search the forums? This question was just asked again, recently on the forums. http://www.dostips.com/forum/viewtopic.php?t=7428 You gave me a link to a batch file that uses certutil to do a SHA512 hash on a string. Certutil isn't availible on all computers however, which is what I'm afraid...
- 20 Oct 2016 11:26
- Forum: DOS Batch Forum
- Topic: SHA256 Hash in batch
- Replies: 5
- Views: 8724
SHA256 Hash in batch
I was wondering, does anybody have a batch file that can hash a string in one of the existing hash methods like SHA256, SHA1, or MD5?
I want to make a user login system and I want to hash the password.
I want to make a user login system and I want to hash the password.
- 17 Oct 2016 16:09
- Forum: DOS Batch Forum
- Topic: Conversion of batch to another language, then compile to an exe
- Replies: 8
- Views: 15078
Conversion of batch to another language, then compile to an exe
I was wondering if it was possible to take batch, convert it into another language that most resembles it, and then compile that into an exe. Since most compilers just take it and throw it in %tmp%, I was wondering about actually converting the language to another language. Could this be done? One f...
- 02 Oct 2016 20:56
- Forum: DOS Batch Forum
- Topic: tobat.bat (Part of the BatFramework) - Drag and drop a file and turn it into batch
- Replies: 28
- Views: 21160
Re: tobat.bat (Part of the BatFramework) - Drag and drop a file and turn it into batch
You might want to explain what it actually does (converts a file to base64 and stores it in a separate batch file for later deconversion) instead of whatever "takes the certificate and modifies it to make it into perfection" is supposed to mean. Isn't that what I said...? It uses certutil...
- 02 Oct 2016 19:31
- Forum: DOS Batch Forum
- Topic: tobat.bat (Part of the BatFramework) - Drag and drop a file and turn it into batch
- Replies: 28
- Views: 21160
tobat.bat (Part of the BatFramework) - Drag and drop a file and turn it into batch
Hi guys, here's a quick batch file from my project I'm working on ( BatFramework github.com/SirJosh3917/BatFramework - Don't expect it to be good yet ) tobat.bat is a batch file. It's part of the BatFramework project I'm making, but it's as easy as leaving it on your desktop. Just drag and drop what...
- 18 Aug 2016 21:08
- Forum: DOS Batch Forum
- Topic: How can I create a batch file that compiles and executes a C++ program using cl ?
- Replies: 2
- Views: 4761
Re: How can I create a batch file that compiles and executes a C++ program using cl ?
Do you have to use one of the visual studio tools? Personally I just use G++. @echo off :main cd %dir% set dir=%~dp1 set name=%~n1 del "%dir%\%name%.exe" cls C:\MinGW\bin\g++ "%~1" -o "%dir%\%name%.exe" -static if exist "%name%.exe" goto :program pause goto :m...
- 18 Aug 2016 19:31
- Forum: DOS Batch Forum
- Topic: [Question] Using Base64 to store a file in batch
- Replies: 4
- Views: 6577
Re: [Question] Using Base64 to store a file in batch
@ShadowTheif
Thank you for your very helpful reply! This will help me a great amount.
Thank you for your very helpful reply! This will help me a great amount.