dahquan / rattlesnake

An Open Source Slither.io Client Framework
MIT License
26 stars 13 forks source link

Add Socks 5 And Socks4 And HTTP Proxy Support #70

Open yario-o opened 8 years ago

yario-o commented 8 years ago

I add socks5 and socks4 and http support like ogar-feeder-bot(with #HTTP and #SOCKS 4 and #SOCKS5)

All is here : https://github.com/yario-o/rattlesnake/tree/SocksAndHTTP

yario-o commented 8 years ago

now connect function is connect(proxy, mode)

yario-o commented 8 years ago

If you don't put #HTTP or #SOCKS5 or #SOCKS4 it will be used for HTTP

Wartoz commented 8 years ago

so now we can connect http and socks at same time?

yario-o commented 8 years ago

@Wartoz yes

yario-o commented 8 years ago

I just add SOCKS4

yario-o commented 8 years ago

Now you can do #SOCKS4

anonymousxxx02 commented 8 years ago

@yario-o i am getting this error

yario-o commented 8 years ago

@anonymousxxx02 which error?

anonymousxxx02 commented 8 years ago

ops sorry { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' }

anonymousxxx02 commented 8 years ago

also this { [Error: socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' } { [Error: socket hang up] code: 'ECONNRESET' } { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' } { [Error: socket hang up] code: 'ECONNRESET' } [Bots Alive: 11] xxxx died

yario-o commented 8 years ago

Do you have bots?

yario-o commented 8 years ago

I think it is not working proxy which do this error. But normally bots work.

yario-o commented 8 years ago

You use that : https://github.com/yario-o/rattlesnake/tree/SocksAndHTTP or that : https://github.com/yario-o/slither-feeder-bot

anonymousxxx02 commented 8 years ago

@yario-o yes i have bots but i think they connect only with sock4 because they are only few bots and i am using this code https://github.com/l3mpik/slither-feeder-bot

easyrider81 commented 8 years ago

I get the same error as @anonymousxxx02

yario-o commented 8 years ago

I think It do this error when proxy don't work

anonymousxxx02 commented 8 years ago

@yario-o I think it doesnt work correct because before the error it say connect with sock4 proxy

yario-o commented 8 years ago

I think I find the error I will fix that.

anonymousxxx02 commented 8 years ago

@yario-o ok

yario-o commented 8 years ago

@anonymousxxx02 @easyrider81 The Bots are fix !

anonymousxxx02 commented 8 years ago

@yario-o still the same thing ` Mode socks4, proxy 130.211.96.191:3128

Mode socks4, proxy 130.211.96.191:3128

Mode socks4, proxy 14.38.187.171:10200

Mode socks4, proxy 14.38.187.171:10200

Mode socks4, proxy 141.138.156.83:1080

Mode socks4, proxy 141.138.156.83:1080

Mode socks4, proxy 176.109.252.177:1080

Mode socks4, proxy 176.109.252.177:1080 [Error: Rejected (91)]

[Error: Rejected (91)]

Bot die

Bot die

Bot die

{ [Error: tunneling socket could not be established, cause=Parse Error] code: 'ECONNRESET' }

{ [Error: socket hang up] code: 'ECONNRESET' }

{ [Error: tunneling socket could not be established, cause=read ECONNRESET] code: 'ECONNRESET' }

{ [Error: socket hang up] code: 'ECONNRESET' }

{ [Error: tunneling socket could not be established, cause=socket hang up] code: 'ECONNRESET' }

{ [Error: socket hang up] code: 'ECONNRESET' } Bot die Bot die { [Error: tunneling socket could not be established, cause=Parse Error] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } Bot die { [Error: tunneling socket could not be established, cause=socket hang up] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' } Bot die { [Error: tunneling socket could not be established, cause=Parse Error] code: 'ECONNRESET' } { [Error: socket hang up] code: 'ECONNRESET' }`

yario-o commented 8 years ago

@anonymousxxx02 I do a new update

anonymousxxx02 commented 8 years ago

@yario-o Ok i am gonna check this later i hope to work this time 😂