Search found 35 matches

by SirJosh3917
29 Oct 2016 12:30
Forum: DOS Batch Forum
Topic: HTML Batch String Parser
Replies: 3
Views: 1602

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...
by SirJosh3917
29 Oct 2016 12:27
Forum: DOS Batch Forum
Topic: Metadata for batch files
Replies: 4
Views: 1732

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,...
by SirJosh3917
29 Oct 2016 11:59
Forum: DOS Batch Forum
Topic: Metadata for batch files
Replies: 4
Views: 1732

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...
by SirJosh3917
20 Oct 2016 20:44
Forum: DOS Batch Forum
Topic: Prevent Keylogging
Replies: 1
Views: 709

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...
by SirJosh3917
20 Oct 2016 14:23
Forum: DOS Batch Forum
Topic: RdRand.exe: Robust random numbers for Batch files
Replies: 19
Views: 5507

Re: RdRand.exe: Robust random numbers for Batch files

@Aacini

Image

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.
by SirJosh3917
20 Oct 2016 12:35
Forum: DOS Batch Forum
Topic: SHA256 Hash in batch
Replies: 5
Views: 2998

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?
by SirJosh3917
20 Oct 2016 12:24
Forum: DOS Batch Forum
Topic: RdRand.exe: Robust random numbers for Batch files
Replies: 19
Views: 5507

Re: RdRand.exe: Robust random numbers for Batch files

I'm simply amazed you know assembly, I want to learn that language badly :shock:
Do you have any links to guides I can see to learn assembly?
by SirJosh3917
20 Oct 2016 12:22
Forum: DOS Batch Forum
Topic: SHA256 Hash in batch
Replies: 5
Views: 2998

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...
by SirJosh3917
20 Oct 2016 11:26
Forum: DOS Batch Forum
Topic: SHA256 Hash in batch
Replies: 5
Views: 2998

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.
by SirJosh3917
17 Oct 2016 16:09
Forum: DOS Batch Forum
Topic: Conversion of batch to another language, then compile to an exe
Replies: 8
Views: 3435

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...
by SirJosh3917
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: 6952

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...
by SirJosh3917
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: 6952

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...
by SirJosh3917
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: 1453

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...
by SirJosh3917
18 Aug 2016 19:31
Forum: DOS Batch Forum
Topic: [Question] Using Base64 to store a file in batch
Replies: 4
Views: 2062

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.
by SirJosh3917
18 Aug 2016 19:07
Forum: DOS Batch Forum
Topic: Creating a script to gather PC information - to assist those asking for help
Replies: 157
Views: 34462

Re: Creating a script to gather PC information - to assist those asking for help

I remembered an old way to detect if the actual user has admin rights (after i've seen the "NET USER %USERNAME%" command; should be the fastest): >nul 2>nul net session && echo Hello admin. || echo Hello noadmin. penpen I have a "faster" but perhaps "less accurate&q...