Skip to content

My own engine, problem with users/12962/%login% in GSA

Hello,

I've got problem with submission status in script with links like this: http://9fingers.pl/users/12962/combottest/
I don't know how to give GSA informations to go to random number from the URL, I was trying do this: [0-9]*[0-9]*[0-9]*[0-9]*[0-9] but then I've got in debug:
GET http://9fingers.pl/users/[0-9]*[0-9]*[0-9]*[0-9]*[0-9]/edit/ for example

My script:

[setup]
enabled=1
default checked=0

url must have=*://*9finfers.pl*

engine type=Moje TR
description=Zaklada profil na 9fingers.pl

dofollow=1
anchor text=1
creates own page=1
uses pages=0

extract keywords=0

skip ext links on=0
skip content on=0
skip url content on=0
posted domain check=1
        
[Your E-Mail]
static=1
type=email

[URL]
type=url

[About_Yourself]
type=memo
allow html=0
allow return=1
must be filled=1
max length=250
hint=Please fill this with some information about yourself. Use the spin syntax heavily here.
auto modify=0
default=%file-about_yourself.dat%
custom mode=1

[Login]
type=login
must be filled=1
hint=The login for websites that need an account. Use numbers and letters only.
min length=5
static=1

[Password]
type=password
must be filled=1
hint=A password used for websites that need an account. Use numbers and letters only.
min length=6
static=1

[REGISTER_STEP1]

submit success=Konto zostało utworzone|Musisz aktywować swoje konto
submit failed=Wprowadź poprawny adres e-mail.|Musisz wpisać to samo hasło za każdym razem.|Akceptacja regulaminu jest wymagana|Zgoda na otrzymywanie wiadomości z serwisu jest wymagana
;submit success skip verify=

form name=*zarejestruj się

verify submission=1
verify interval=10
verify timeout=30
first verify=0
verify by=email
verify on unknown status=1

set unknown variable=%leave%

username=%login%
email=%your e-mail%
password1=%password%
password2=%password%
password1=%leave%
regulations=1
service_messages=1
ad_messages=1

[LOGIN_STEP1]

[LOGIN_STEP2]

submit success=%login%|wyloguj
submit failed=To pole jest wymagane

verify on unknown status=1

form name=*Zaloguj się

set unknown variable=%leave%

username=%login%
password=%password%

[STEP1]
link type=Profile-URL

;submit success=
;submit failed=

verify submission=1
verify interval=1
verify timeout=1
first verify=0
verify by=url
verify on unknown status=1
verify search detail url=0

form name=*Aktualizuj

set unknown variable=%leave%

query=%leave%
email=%your e-mail%
realname=%leave%
website=%link%
city=%leave%
birthday=%leave%
;%leave%
about=%url%



In this version is just [0-9]*[0-9], I've copied that from xfire.ini from GSA, but still doesn't work well.
Bugtrack:
[-] match: 000, name: FORM 1 - Szukaj, id: , url: http://9fingers.pl/search/
[+] match: 004, name: FORM 2 - zarejestruj się, id: , url: http://9fingers.pl/account/signup/
username=MurrayOgre  [type: TEXT]
email=mernawuprpjgs70@hotmail.com  [type: TEXT]
password1=OT0Pzk  [type: TEXT]
password2=OT0Pzk  [type: TEXT]
recommended=  [type: TEXT]
regulations=on  [type: CHECKBOX]
service_messages=on  [type: CHECKBOX]
ad_messages=on  [type: CHECKBOX]

COOKIES:
sessionid=504b23c717a8c3aabfa3860407e98c74

*HERE IS INFORMATION ABOUT SUCCESS FULL REGISTER* (cannot copy that, don't know why)


COOKIES:
sessionid=8935bbd476d0b1f4724b74e627f91c48

[-] match: 000, name: FORM 1 - Szukaj, id: , url: http://9fingers.pl/search/
[+] match: 000, name: fauth - Zaloguj się, id: , url: http://9fingers.pl/account/signin/

next=/account/signout/  [type: HIDDEN]
username=Albertina  [type: TEXT]
password=  [type: TEXT]
blogin=Zaloguj się  [type: HIDDEN]

COOKIES:
sessionid=8935bbd476d0b1f4724b74e627f91c48

COOKIES:
sessionid=8935bbd476d0b1f4724b74e627f91c48
[-] match: 000, name: FORM 1 - Szukaj, id: , url: http://9fingers.pl/search/
[+] match: 005, name: fauth - Zaloguj się, id: , url: http://9fingers.pl/account/signin/

next=/  [type: HIDDEN]
username=MurrayOgre  [type: TEXT]
password=OT0Pzk  [type: TEXT]
blogin=Zaloguj się  [type: HIDDEN]

COOKIES:
sessionid=a3e59e7caa697e4a36657c3f1c2da0f3


COOKIES:
sessionid=a3e59e7caa697e4a36657c3f1c2da0f3

[+] match: 000, name: FORM 1 - Szukaj, id: , url: http://9fingers.pl/search/

choice=user  [type: RADIO/SELECT]
query=  [type: TEXT]

COOKIES:
sessionid=a3e59e7caa697e4a36657c3f1c2da0f3


As you can see GSA trying to put somethink in SEARCH, but.. why? I didn't put this in my code. I think it's about problem with find my profile URL.
An account was created successfully: http://9fingers.pl/users/12980/MurrayOgre/

Thank you,
Michał

Sorry for my english, please ask if you can't understand what I've got on my mind
Tagged:

Comments

  • And if you will ask about logout to login - this is 11th version of this code. This site after verification login automatically, so in 1st I was trying go to profile, now I'm trying to logout first and then go to login page. But still I've got the same problem with /users/[0-9]*[0-9]/edit/
  • SvenSven www.GSA-Online.de
    to use random numbers you should use the macro like %random-min-max% or also #random[0..9] 
  • Sven, or can I use find link maybe?
    For example
    [STEP1]
    find url=*/edit
    form name=*Aktualizuj

    set unknown variable=%leave%

    query=%leave%
    email=%your e-mail%
    realname=%leave%
    website=%link%
    city=%leave%
    birthday=%leave%
    ;%leave%
    about=%url%

    will this or someting like this work?
  • Ok, I make this shit work! :)

    But I've got problem with veryfication. In GSA in verified I've got 1, but when I click show verified URLs I've got prompt: No URLs to show (project might not saved to disk).
    In debug mode I've got good URL of profile: http://9fingers.pl/users/12994/IolaTiffan/
    What can I do to get whis URL in verified URLs for this project?
  • Nevermind, it's work!
    Sven you are genius, thank you for GSA!
  • SvenSven www.GSA-Online.de
    Want me to include it to the next release?
  • This is my 1st my own engine, so I will be honored if you can do this. I will pm you with the code to post there :)
Sign In or Register to comment.