[Script] PHPBookmark - work in progress

cherubcherub Edinburgh, UK
edited August 2012 in New Engines/Platforms
I thought I'd have a play around with the ini files to try and get my head round the syntax and have come up with the following, targetting the PHPBookmark platform:

; PHPBookmark.ini
; by cherub
; for GSA Search Engine Ranker

[setup]
enabled=1
default checked=0

engine type=Social Bookmark
description=Submits your website to PHPBookmark sites.
dofollow=2
anchor text=2
uses pages=2

page must have1=save and share interesting links|Interessante Links speichern und teilen|href="anmelden"|action="stichwort"

search term="Copyright * TeraPix.de"|"save and share interesting links"|"Interessante Links speichern und teilen"|"die Top * aus * Bookmarks"|"our top * out of * bookmarks"|"als UND Verknüpfung suchen"|"Neu hier? Jetzt kostenlos mitmachen"|"Are you new? Sign up for free"

add keyword to search=2
use blog search=0
extract keywords=0

posted domain check=1

skip ext links on=0
skip content on=0
skip url content on=0

;-------------------------------------------------------------------------
;the variables we have to define for this engine (if not already defined before)
;name, keyword, url, e-mail are already defined by default


[URL]
type=url

[Anchor_Text]
type=text
allow html=0
must be filled=1
hint=Use the keyword that you would like your page getting ranked for. Also use spin syntax here for more than one anchor text.
alternate data=%spinfile-generic_anchor_text.dat%

[Description_250]
type=memo
max length=%META_DESCRIPTION_limit%
allow html=0
must be filled=1
hint=Use spin syntax here to not get duplicate content.

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

[password]
type=extract
front=Password:
back=<br />

[codemd5]
type=extract
front=id="codemd5" value="
back="

[submitbutton]
type=extract
front=name="submit" value="
back="


;--------------------------------------------------------------------------- 
;the form variables and how to fill them

[REGISTER_STEP1]
find url=anmelden
find link=Are you new? Sign up for free...|Neu hier? Jetzt kostenlos mitmachen...
alternative url=/anmelden

form name=Sign up for free|kostenlos Anmelden
form url=anmelden

submit success=That was successfull|<div class="success">
submit failed=<div class="error">

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


username=%Login%
email=%your e-mail%
checkcode=%captcha% src="data:;"
privacy=1
codemd5=%codemd5%
submit=%submitbutton%


[LOGIN_STEP1]
find link=Login
alternative url=/index.php

form name=Login now|Jetzt einloggen

submit success=<div class="success">
submit failed=<div class="error">
verify on unknown status=1

username=%login%
password=%password%
toDo=login
submit=Login now

;---- the submission

[STEP1]
find link=Save a website|Seite speichern
find url=new.php
alternative url=/new.php
                                   
form name=Next...|Weiter...
form url=new.php

variable must be used=url

; not sure about this section
;verify submission=1
;verify by=search+email+url,url+email
;verify url=/upcoming.php
;verify interval=30
;verify timeout=7200
;verify on unknown status=1
;verify url=%targethost%
;verify search for=%Anchor_Text%,%url%
;verify search detail url=1

url=%url%
step=1


[STEP2]
form name=Next...|Weiter...
form url=new.php

set unknown variable=%leave%

url=%url%
title=%Anchor_Text%
descr=%Description_250%
keyword=%keyword%, %keyword%, %keyword%, %keyword%
privat=0
step=2

submit success=<div class="success">|%url%
submit failed=<div class="error">


I think its nearly there, but there are a few points that I'm not sure of.
1) how the captcha is extracted, looks like some sort of regex but Im not sure - checkcode=%captcha% src="data:;"
2) how the resulting password is extracted from the email
3) the whole verification system, I just commented it out

I will be looking at it again when Ive got time, but if anyone else wants to take a look feel free. There are plenty of targets out there, and it seems a pretty simple platform.

Cheers

Comments

  • SvenSven Germany
    edited August 2012 0.00 Karma

    Nice to see people contribute here.

    > 1) how the captcha is extracted, looks like some sort of regex but Im not sure

    Just write %captcha% and the program will find it automatically. Just in case this is not working, use some kind of string that is part of the captcha-url like... %captcha% /captcha.php

    > 2) how the resulting password is extracted from the email

    in setup you have it setup like this...

    [SETUP]

    extract from email=password=email_pw

    this will go to the email_pw section, extract things from emails according to its section and put the result in "password"

    [email_pw]

    type=extract

    front=password:

    back1=\n

    back2=<

    this takes a text (email) searches for "password:", cuts that away, and cuts things away at the end (new line and if present als all after the < sign).

    >3) the whole verification system, I just commented it out

    that really depends on the way a link can be detected. To complicated to write it up here. 

  • cherubcherub Edinburgh, UK
    1393.00 Karma
    Thanks, will have a play around
  • SvenSven Germany
    0.00 Karma
    This was also included in v4.03. Thanks to all who made it possible.
  • cherubcherub Edinburgh, UK
    1393.00 Karma
    Working on a few more, but no timeframes ;)
  • SvenSven Germany
    0.00 Karma

    cool

    let me know if you run into problems :)

Sign In or Register to comment.