Advertisement
Mavamaarten

Untitled

Aug 19th, 2013
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. If Host = "Putlocker" Then
  2.  
  3. Dim source As String = .GetResponse(Utility.Http.Verb.GET, "http://www.putlocker.com/file/D0BC3B1F4AF2EC26").Html
  4. Dim Hash As String = Regex.Match(source, "<input type=""hidden"" value=""(.*)"" name=""hash"">").Groups(1).Value
  5.  
  6. Dim Headers As New NameValueCollection
  7. Headers.Add("Connection", "keep-alive")
  8.  
  9. .Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
  10. .Useragent = "Mozilla/5.0 (Windows NT 6.2; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
  11. .AcceptCharset = String.Empty
  12. .AcceptEncoding = "gzip, deflate"
  13. .AcceptLanguage = "fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3"
  14. .ContentType = "application/x-www-form-urlencoded"
  15.  
  16. Dim GetPhpScript As String = .GetResponse(Utility.Http.Verb.POST, "http://www.putlocker.com/file/D0BC3B1F4AF2EC26", String.Format("hash={0}&confirm=Continue+as+Free+User", Hash), Headers).Html
  17. Dim StreamURL As String = Regex.Match(GetPhpScript, "playlist: \'(.*)\'").Groups(1).Value
  18. Dim MediaURL As String = .GetResponse(Utility.Http.Verb.GET, "http://www.putlocker.com" + StreamURL).Html
  19. MediaURL = Regex.Match(MediaURL, "<media:content url=""(.*)""").Groups(1).Value
  20. MessageBox.Show(MediaURL)
  21.  
  22. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement