Register for your free account! | Forgot your password?

Go Back   elitepvpers › Coders Den › .NET Languages
You last visited: Today at 07:38

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB] HTTP WEB REQUEST SPAMBOG.Com

Discussion on [VB] HTTP WEB REQUEST SPAMBOG.Com within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
roteisenklinge's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 1,071
Received Thanks: 164
[VB] HTTP WEB REQUEST SPAMBOG.Com

Alles geklääääärt danke!
Attached Files
File Type: zip WebEno.zip (7.4 KB, 2 views)
roteisenklinge is offline  
Old   #2
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
PHP Code:
//Login
With New Http
            Dim sb 
As New StringBuilder
            sb
.Append("siteFrom=0")
            
sb.Append("&strLoginAlias=test123")
            
sb.Append("&intLoginDomainId=1")
            
sb.Append("&strLoginPassword=")
            
sb.Append("&btnLogin=Postfach+abrufen")
            
sb.Append("&strGeneratedAddress=test123%40spambog.com")

            
Dim html As String = .GetResponse("http://www.spambog.com/inbox.htm", sb.ToString)
        
End With

//Http Klasse
Public Class Http
    Dim cookieCon 
As New CookieContainer
    Dim request 
As HttpWebRequest
    Dim response 
As HttpWebResponse

    
Public Function GetResponse(ByVal url As String) As String
        request 
= CType(HttpWebRequest.Create(url), HttpWebRequest)
        
request.CookieContainer = cookieCon
        response 
= CType(request.GetResponse(), HttpWebResponse)

        Return New 
StreamReader(response.GetResponseStream()).ReadToEnd()
    
End Function

    Public Function 
GetResponse(ByVal url As String, ByVal post As String) As String
        request 
= CType(HttpWebRequest.Create(url), HttpWebRequest)
        
request.Method = "POST"
        
request.CookieContainer = cookieCon
        request
.UserAgent = "Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20100101 Firefox/8.0"
        
request.ContentType = "application/x-www-form-urlencoded"

        
Dim byteArr() As Byte = Encoding.UTF8.GetBytes(post)
        
request.ContentLength = byteArr.Length

        Dim dataStream 
As Stream = request.GetRequestStream()
        
dataStream.Write(byteArr, 0, byteArr.Length)

        
response = CType(request.GetResponse(), HttpWebResponse)

        Return New 
StreamReader(response.GetResponseStream()).ReadToEnd()
    
End Function
End Class
//http://www.elitepvpers.com/forum/coding-tutorials/1575469-vb-net-httpwebrequest-tutorial.html 
In der "html"-Variable ist nun der gesamte Quelltext, also mit den Emails bzw. Links zu den Emails usw.
Kraizy​ is offline  
Thanks
1 User
Old   #3
 
roteisenklinge's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 1,071
Received Thanks: 164
Hey, super du hast mir soweit geholfen Jetzt fehlt nur noch das Email auslesen
roteisenklinge is offline  
Old   #4
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Split/SubString oder RegEx (wäre wohl geeigneter).
Kraizy​ is offline  
Reply


Similar Threads Similar Threads
request (http://vegaran.net)
11/04/2011 - RF Online - 4 Replies
plzzz post cheat vote hack :D:D:D:handsdown::handsdown::handsdown:



All times are GMT +1. The time now is 07:38.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.