Yoko

All sides of Injection
It is currently 2026-01-01 17:17:20

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2005-01-09 20:22:50 
Offline

Joined: 2004-07-06 07:03:29
Posts: 22
Hello ! Long time i dont brother here =)

Well. Iam with 2 problems:

1-When i use a random command inside a loop... the randomered give the same value...

Exemple:

Code:
var temp
for temp=1 to 10
 uo.print(str( uo.random(20) ) )
next


if the first time it return "13", the another 9 times it will return "13" too.

How i can solve it ?

--------------------------------

2- Whats the string functions that injection uses ?

I need to do something like that:

String: "Vendor Joe: Hello, what u need ?"

a: Take only the text before the " : " and after that remove the "vendor" title.

b: The string after " : " is the question that can change.

c: give the answer based in the question: "Hello Joe, i need to buy something"

in PHP i can use the functions "left" , "right" , "string pos" to do that. But how i can do that here ?


Top
   
PostPosted: 2005-01-09 21:41:47 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
Psyny wrote:
in PHP i can use the functions "left" , "right" , "string pos" to do that. But how i can do that here ?


You can use left(), right(), mid() in injection's scripts...


Top
   
 Post subject:
PostPosted: 2005-01-14 15:22:07 
Offline

Joined: 2004-07-06 07:03:29
Posts: 22
oh my god... iam blind...

hehehe ok.. thx


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited