[SNIPPET] random string

Dunno if made already, couldn't find it so made one
what is this used for?: spamming chat

sources used: LukasParazitas http://ugbase.eu/index.php?threads/help-reading-a-string.20798/#post-121582 (I dunno how to make functions in cleo so i just copy pasted his and adjusted it)
Code:
//EXAMPLE

alloc 0@ 256
format 0@ "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM123456789"

alloc 1@ 121 // always alloc 1 more byte than length for '\0'
0AB1: call_scm_func @random_string param_count 3 string 0@ length 120 text_start_pointer 1@


:random_string
{
    0@ = string
    1@ = length
    2@ = text start pointer
}
0C17: 3@ = strlen 0@
for 4@ = 0 to 1@
    0085: 5@ = 0@
    0209: 6@ = random_int_in_ranges 0 3@
    005A: 5@ += 6@  
    0A8D: 7@ = read_memory 5@ size 1 virtual_protect 1
    0A8C: write_memory 2@ size 1 value 7@ virtual_protect 1
    2@++  
end
0A8C: write_memory 2@ size 1 value 0 virtual_protect 1
0AB2: ret 0
 
Last edited:

Parazitas

God
Joined
Jan 2, 2017
Messages
3,116
Solutions
5
Reaction score
882
Location
Lithuania
Nice you made snippet .
Congrats !
Just one question..
What the point of this snippet?
You didn't explain clearly...
 

real_fl1k

Active member
Joined
Apr 23, 2020
Messages
72
Reaction score
8
Location
Belgrade
Or even random passwords when registering on a server, tbh dunno just released it because I didn't see one when I needed it
 
Top