Results 1 to 8 of 8
  1. #1
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh

    :| Fuck you LOOP!

    Code:
    Imports System.Net
    Imports System.Net.Sockets
    Imports System.IO
    
    Public Class FriendInvoke
    
        Private lis As New TcpListener(10030)
    
        Public ReadOnly Property RequestedBytes As Byte()
            Get
                Dim req As HttpWebRequest = WebRequest.Create("https://whatismyip.com/automation/n09230945.asp")
                Dim res As HttpWebResponse = req.GetResponse()
                Dim Stream As Stream = res.GetResponseStream()
                Dim sr As StreamReader = New StreamReader(Stream)
                Dim xp As String = (sr.ReadToEnd) & " | ComeIn"
                Dim b() As Byte = Text.ASCIIEncoding.ASCII.GetBytes(xp)
                Return b
            End Get
        End Property
    
        Public Sub SendReq(ByVal ip As String)
            Dim x As New TcpClient(ip, 10030)
            Dim sr As Stream = x.GetStream()
            sr.Write(RequestedBytes, 0, RequestedBytes.Length)
        End Sub
    
        Dim x As New mes()
    
        Public Sub sRun()
            lis.AllowNatTraversal(True)
            While (True)
                lis.Start()
                Dim s As Socket = lis.AcceptSocket()
                Dim c As TcpClient = lis.AcceptTcpClient()
                Dim sr As Stream = c.GetStream()
                Dim rB(100) As Byte
                sr.Read(rB, 0, rB.Length)
                Dim str As String = Text.ASCIIEncoding.ASCII.GetString(rB)
                If str.Contains(" | ComeIn") Then
                    Dim ip As String = str.Replace(" | ComeIn", "")
                    x.Label1.Text = x.Label1.Text.Replace("%%%", ip)
                    x.Show()
                    If x.Accepted = 1 Then
                        Process.Start("aiw://connect " & ip)
                    Else
                        s.Disconnect(False)
                        c.Close()
                    End If
                End If
            End While
        End Sub
    
        Public Sub Run()
            Dim a As New Threading.Thread(AddressOf sRun)
            a.Start()
        End Sub
    
    End Class
    It's simple, I just want a app that when gets a buffer that contains the text " | ComeIn", it will popup a window, and if they user clicks on a label of the window a game will start otherwise not. Well the window do appear but I can't click anywhere -.-
    My brain is fucked up right now cuz I studied all the day for the exams so I can't figure it out good, please halp!

    IDK but I'm pretty sure it has to do with the while shit at the top -.-
    Last edited by ♪~ ᕕ(ᐛ)ᕗ; 05-22-2011 at 07:19 AM.

  2. #2
    hustelboy's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Underground Cave System Posts: 4,435,765
    Posts
    312
    Reputation
    28
    Thanks
    39
    What's need to reveice " | ComeIn" ??

  3. #3
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    Quote Originally Posted by hustelboy View Post
    What's need to reveice " | ComeIn" ??
    Yes, anyways now per now I got it working with a message box, but the user can't select if he wants to join the party or not.

  4. #4
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    @Chooka
    Solved.

    @Hassan
    thx. (MSN HELP FTW!)

  5. #5
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Post solution here, the point of these help threads is also to potentially avoid repetition of the same question by offering the answer in the thread.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  6. #6
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    Code:
    x.Label1.Text = x.Label1.Text.Replace("%%%", ip)
                    x.Show()
                    If x.Accepted = 1 Then
                        Process.Start("aiw://connect " & ip)
                    Else
                        s.Disconnect(False)
                        c.Close()
                    End If
    Make that part:
    Code:
    Dim shitfuck As MsgBoxResult = MsgBox(ip, YesNo, "Party Invite")
      if shitfuck = Yes then Process.start("aiw://connect/" &ip)
    But It won't work on remote machines, I've tried it 3 times.
    Like I can't send the request to a remote machine, and they can't send me a request, even if we forward the TCP Listener port (10030)

  7. #7
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,670
    My Mood
    Breezy
    Use UDP instead?
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  8. #8
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    System.Net.Sockets doesn't contain a UDP Listener Class. Also UDP doesn't support file transfert (Yes I want to implement that too) , UDP is for Voice, Audio, etc. So yea I think that TCP Is OK, well maybe the prob is on my pc?