Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

ghost2238/ping_fonline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tools for pinging an FOnline server

For correct ping send 4 bytes to server - 0xFFFFFFFF, than receive 16 bytes, where 4 is current online, 4 bytes is uptime in seconds, others 8 is reserved. After server drop connection. -cvet

Code

ping.sh - Bash script for pinging, requires dd and od.
ping.fasm - Same thing implemented in x64 asm (FASM) for linux using only syscalls, no libc.

Usage

ping.sh <server ip> <server port> node ping.js <server ip> <server port>

Example

./ping.sh play.fonline-reloaded.net 2238

Players: 36
Uptime: 103831 seconds

node ping.js play.fonline-reloaded.net 2238

Connected to play.fonline-reloaded.net:2238
Players: 8
Uptime: 6 days, 8 hours, 5 minutes

About

Tools for pinging FOnline servers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published