The Forum is up for sale: XeNTaX Forum looking for new owner

Quickbms String Help

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
Digitkel
beginner
Posts: 20
Joined: Sat Sep 11, 2010 10:01 pm

Quickbms String Help

Post by Digitkel »

I need some help with modifying a string in quickbms.

Say I have a string "thisismysuperkey" that is 0x7468697369736D7973757065726B6579 in hex

I want to increment it in my loop by 1 so it becomes "uhisismysuperkey" 0x7568697369736D7973757065726B6579 in hex

next round it becomes
0x7668697369736D7973757065726B6579 in hex, etc

Is this possible in Quickbms?
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1411 times

Re: Quickbms String Help

Post by chrrox »

sure its possible but we need your script to help you.
Digitkel
beginner
Posts: 20
Joined: Sat Sep 11, 2010 10:01 pm

Re: Quickbms String Help

Post by Digitkel »

Ok Here's a simple example

Code: Select all

GetBits KEY 128
#GetDString KEY 16

print "the variable KEY of the file has the value %KEY%"
print "the variable KEY of the file has the value %KEY|h%"

MATH KEY + 1  #this doesn't work 

print "the variable KEY of the file has the value %KEY%"
print "the variable KEY of the file has the value %KEY|h%"
I attached a file to run the script on, it's just my 16 byte key "thisismysuperkey".
You do not have the required permissions to view the files attached to this post.
Digitkel
beginner
Posts: 20
Joined: Sat Sep 11, 2010 10:01 pm

Re: Quickbms String Help

Post by Digitkel »

I made a little progress, a easy question.

How would I get a variable into a temporary_file?

Say I wanted to write the variable KEY in the example to a temporary_file.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 661 times
Contact:

Re: Quickbms String Help

Post by aluigi »

Code: Select all

set NAME string thisismysuperkey
encryption rot "\x01"
string NAME E= NAME
encryption "" ""
print "%NAME%"
Digitkel
beginner
Posts: 20
Joined: Sat Sep 11, 2010 10:01 pm

Re: Quickbms String Help

Post by Digitkel »

Thanks for the help aluigi, I try that code out.

How would i get my variable into a temporary_file?
Post Reply