• Welcome to Valhalla Legends Archive.
 

Announcements/Updates

Started by Blade_360, February 03, 2003, 01:12 PM

Previous topic - Next topic

Blade_360

::) How do you a vb bot to get announcments from servers like in Raibot or Stealth Bot? Thanks

Banana fanna fo fanna

#1
Pull em from a webpage using internet transfer ocx.

Atom

#2
Yeah thats the easiest way, but i use a winsock control cuz it makes it one less file to be included with your bot. Heres the code..

Private Sub sckHttp_Connect()
On Error Resume Next
With sckHttp
    .SendData "GET " & "/news.txt" & " HTTP/1.1" & vbCrLf
    .SendData "Accept: text/plain" & vbCrLf
    .SendData "Accept-Language: en-us" & vbCrLf
    .SendData "Accept-Encoding: gzip, deflate" & vbCrLf
    .SendData "User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)" & vbCrLf
    .SendData "Host: " & "www.hostnamehere.com" & vbCrLf
    .SendData "Connection: Keep-Alive" & vbCrLf & vbCrLf
End With
End Sub
Somebody really needs to fix the font size of the code!
I am back! aINC is dead, ThinkTank PRO is alive.
VB, JAVA, ASM, C, its all yummy to me.

Crypticflare

#3
that would be the msinet.ocx control right? In my Clan Profile Organizer, I did somthing like that, except I wanted to have more complex, for pulling profiles off of a server, or perhaps a roster for events or activities

Blade_360

k thanks ;D
no kidding about the code font size :o

iago

#5
I like Spht's method; he does it over Botnet
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Spht

#6
QuoteI like Spht's method; he does it over Botnet

Yes, with my method, can post messages to all users using EternalChat at any time. Also, broadcasts that are sent by BNLS are received and displayed by all running EternalChat bots for notifications of server restarting, game updates, etc.

Banana fanna fo fanna

#7
Wow, stop making life so hard!

Private Sub sckHttp_Connect()
On Error Resume Next
With sckHttp
  .SendData "GET " & "/news.txt" & " HTTP/1.1" & vbCrLf & vbCrLf
End With
End Sub

Arta

#8
QuotePrivate Sub sckHttp_Connect()
On Error Resume Next
With sckHttp
    .SendData "GET " & "/news.txt" & " HTTP/1.1" & vbCrLf
    .SendData "Accept: text/plain" & vbCrLf
    .SendData "Accept-Language: en-us" & vbCrLf
    .SendData "Accept-Encoding: gzip, deflate" & vbCrLf
    .SendData "User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)" & vbCrLf
    .SendData "Host: " & "www.hostnamehere.com" & vbCrLf
    .SendData "Connection: Keep-Alive" & vbCrLf & vbCrLf
End With
End Sub

What on earth is the point in sending all those headers when half of them will be wrong anyway?

Skywing

#9
Quotelink=board=bot;num=1044313938;start=0#8 date=02/04/03 at 03:59:22]

What on earth is the point in sending all those headers when half of them will be wrong anyway?
Yes.  Especially accepting compressed data - why would you do that if you don't support compression?

iago

#10
I would imagine that he sniffed a http packet and it just imitating it exactly :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Skywing

QuoteWow, stop making life so hard!

Private Sub sckHttp_Connect()
On Error Resume Next
With sckHttp
  .SendData "GET " & "/news.txt" & " HTTP/1.1" & vbCrLf & vbCrLf
End With
End Sub
Yes, I suppose sending completely invalid requests will really make life easier.  A "Host:" header is required for HTTP 1.1, btw.  Suggest you check the protocol specification first next time :)

Quote     - Both clients and servers MUST support the Host request-header.

      - A client that sends an HTTP/1.1 request MUST send a Host header.

      - Servers MUST report a 400 (Bad Request) error if an HTTP/1.1
        request does not include a Host request-header.

Blade_360

Not to be rude or anything  ;D but we don't all have access to botnet  :-/
Oh and congrats on joining [vL] I'm not really that jealous

Noodlez

#13
actually, we do all have the ability to access botnet.

Blade_360

#14
ok then I don't know how to access botnet  ;D