HambaSiang

MelayuNakal downloader

Sep 3rd, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 3.20 KB | None | 0 0
  1. 'PHANTOMCREWS'
  2. '2011-2014'
  3. 'PROJEK : MYNAKAL DOWNLOADER VB.NET'
  4. 'Bypass PRIVATE video'
  5. 'Give credits to me'
  6. 'https://www.facebook.com/DuniaSiberPhc'
  7. 'Form Design : http://s30.postimg.org/wj2kiys0h/Untitled.png'
  8. 'Binary download : http://rghost.net/57829231 '
  9. Imports System.Net
  10. Imports System.Text.RegularExpressions
  11.  
  12. Public Class Form1
  13.    
  14.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  15.         If TextBox1.Text = "" Then
  16.             gileha.Text = "Masukkan link video!!"
  17.         Else
  18.             TextBox2.Text = ""
  19.             TextBox3.Text = ""
  20.             gileha.Text = "Checking Video.."
  21.             try
  22.             Dim request As HttpWebRequest = HttpWebRequest.Create(TextBox1.Text)
  23.             request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/4.0 (.NET CLR 3.5.30729)"
  24.             Dim response As HttpWebResponse = request.GetResponse
  25.             Dim source As String = New IO.StreamReader(response.GetResponseStream).ReadToEnd
  26.             If source.Contains("The video was deleted. You can watch suggested videos below for free or use the search function.") Then
  27.                 gileha.Text = "Video not founded"
  28.                 TextBox1.Text = ""
  29.             Else
  30.                 gileha.Text = "Generating download link"
  31.                 If TextBox1.Text.Contains("http://www.mynakal.com/video/") Then
  32.                     TextBox1.Text = TextBox1.Text.Replace("http://www.mynakal.com/video/", "")
  33.                     If TextBox1.Text.Contains("/") Then
  34.                         TextBox1.Text = TextBox1.Text.Replace("/", "")
  35.                     End If
  36.  
  37.                     Dim jaja As HttpWebRequest = HttpWebRequest.Create("http://www.mynakal.com/media/player/config.php?vkey=" + TextBox1.Text)
  38.                     jaja.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/4.0 (.NET CLR 3.5.30729)"
  39.                     Dim response2 As HttpWebResponse = jaja.GetResponse
  40.                     Dim source2 As String = New IO.StreamReader(response2.GetResponseStream).ReadToEnd
  41.  
  42.                     Dim formula As String = "<src>([^<]*)</src>"
  43.                     For Each item As Match In (New Regex(formula)).Matches(source2)
  44.                         TextBox2.AppendText(item.Groups(1).Value)
  45.                         TextBox3.Text = TextBox1.Text
  46.                         gileha.Text = "Done"
  47.                     Next
  48.  
  49.                     If TextBox2.Text.Contains("http://www.mynakal.com/media/player/ads.php") Then
  50.                         TextBox2.Text = TextBox2.Text.Replace("http://www.mynakal.com/media/player/ads.php", "")
  51.  
  52.                     End If
  53.  
  54.                     TextBox1.Text = "http://www.mynakal.com/video/" + TextBox1.Text
  55.                 End If
  56.             End If
  57.             Catch ex As Exception
  58.              msgbox("Error..please try again!!")
  59.             End Try
  60.         End If
  61.        
  62.     End Sub
  63.  
  64.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  65.         TextBox3.Enabled = False
  66.         Textbox1.text = "http://www.mynakal.com/video/75/"
  67.     End Sub
  68. End Class
Add Comment
Please, Sign In to add comment