Jump to content
UBot Underground

Scraping Got Tricky...


Recommended Posts

I am trying to scrape the passwords. 5 different Passwords and save each password into each owns varialble.

I tried scraping with wildcard but it scrapes all passwords at once.. because the innerhtml are very similar

<innerhtml=w"<strong>Password</strong>: *"> doesnt work

 

Below is the Html code

 

 

 

 

<p>mysite.com</p>
<p><strong>Username:</strong> mysite</p>
<p><strong>Password</strong>: Pass1</p>

<p><strong>Username:</strong><span class="email">email1@email.com</span></p>
<p><strong>Password</strong>: epass1</p>
<p>or:</p>
<p><strong>Username:</strong><span class="email">email2@email.com</span></p>
<p><strong>Password</strong>: epass2</p>
<p>or:</p>
<p><strong>Username:</strong><span class="email">email3@email.com</span></p>
<p><strong>Password</strong>: epass3</p>

<p>or:</p>
<p><strong>Username:</strong><span class="email">email4@email.com</span></p>
<p><strong>Password</strong>: epass4</p>

Edited by sazuka
Link to post
Share on other sites

my regex sucks but this works

add list to list(%passwords,$find regular expression($replace regular expression($find regular expression($scrape attribute(<tagname="p">,"innertext"),"Password:.+"),"Password: ",""),".+"),"Delete","Global")
Link to post
Share on other sites

Another way is using the advanced element selector with scrape attribute,although this can be a bit untrustworthy as if a password is say Password1 I dont  know if it would work,but very easy to cook up a quick scraper

 

 alert($scrape attribute(<(after="Password" AND tagname="p")>,"innertext"))

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...