• Stars
    star
    268
  • Rank 153,144 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ping with UDP packets ๐Ÿ› 

UDPping

ping with UDP protocol ๐Ÿ› 

How it looks like

root@raspberrypi:~# ./udpping.py 44.55.66.77 4000
UDPping 44.55.66.77 via port 4000 with 64 bytes of payload
Reply from 44.55.66.77 seq=0 time=138.357 ms
Reply from 44.55.66.77 seq=1 time=128.062 ms
Request timed out
Reply from 44.55.66.77 seq=3 time=136.370 ms
Reply from 44.55.66.77 seq=4 time=140.743 ms
Request timed out
Reply from 44.55.66.77 seq=6 time=143.438 ms
Reply from 44.55.66.77 seq=7 time=142.684 ms
Reply from 44.55.66.77 seq=8 time=138.871 ms
Reply from 44.55.66.77 seq=9 time=138.990 ms
^C
--- ping statistics ---
10 packets transmitted, 8 received, 20.00% packet loss
rtt min/avg/max = 128.06/138.44/143.44 ms

Getting Started

Step 1

Set up a udp echo server at the host you want to ping.

There are many ways of doing this, my favourite way is:

socat -v UDP-LISTEN:4000,fork PIPE

Now a echo server is listening at port 4000.

Note

If you dont have socat, use apt install socat or yum install socat, you will get it.

Step 2

Ping you server.

Assume 44.55.66.77 is the IP of your server.

./udpping.py 44.55.66.77 4000

Done!

Now UDPping will generate outputs as a normal ping, but the protocol used is UDP instead of ICMP.

Advanced Usage

root@raspberrypi:~# ./udpping.py
 usage:
   this_program <dest_ip> <dest_port>
   this_program <dest_ip> <dest_port> "<options>" 

 options:
   LEN         the length of payload, unit:byte
   INTERVAL    the seconds waited between sending each packet, as well as the timeout for reply packet, unit: ms

 examples:
   ./udpping.py 44.55.66.77 4000
   ./udpping.py 44.55.66.77 4000 "LEN=400;INTERVAL=2000"
   ./udpping.py fe80::5400:ff:aabb:ccdd 4000
   

More Repositories

1

udp2raw

A Tunnel which Turns UDP Traffic into Encrypted UDP/FakeTCP/ICMP Traffic by using Raw Socket,helps you Bypass UDP FireWalls(or Unstable UDP Environment)
C++
7,229
star
2

UDPspeeder

A Tunnel which Improves your Network Quality on a High-latency Lossy Link by using Forward Error Correction, possible for All Traffics(TCP/UDP/ICMP)
C++
4,484
star
3

tinyfecVPN

A VPN Designed for Lossy Links, with Build-in Forward Error Correction(FEC) Support. Improves your Network Quality on a High-latency Lossy Link.
C++
2,196
star
4

udp2raw-multiplatform

multi-platform(cross-platform) version of udp2raw-tunnel, which supports Windows/Mac/BSD natively. Client-Only at the moment.
602
star
5

tinyPortMapper

A Lightweight Port Mapping/Forwarding Utility using epoll/libev, supports IPv4 and IPv6 for both TCP and UDP
C++
572
star
6

canon_mc-g02_resetter

Use Arduino to reset the chip inside your Canon printer's MC-G02 Maintenance Cartridge, reuse it almost forever.
C++
35
star
7

mycc

A tiny C compiler of 2k lines of codes, generates pure x86 asm code for DOS/Win32/Linux 3 backends.
C++
26
star
8

kmod-my-nat

implement snat and dnat by yourself by using netfilter hook
C
14
star
9

tiny-encrypted-udp-tunnel

tiny-singlefile-encrypted-udp-tunnel
C++
12
star
10

info_sec

ไฟกๆฏๅฎ‰ๅ…จๅฎž้ชŒ
C
8
star
11

alg_exp

็ฎ—ๆณ•่ฏพๅฎž้ชŒ
C++
5
star
12

rockbox-modified

rockbox special modified version for SSDed Ipod Classic
C
4
star
13

pwdgen

password generator, for personal use
C++
4
star
14

GVmakerAD-ScrKey

GVmakerAD-ScrKey, lava interpreter written by eastsun.
Java
4
star
15

membench

a very elementry memory bench program
C
4
star
16

ios-codes

for personal use
Shell
3
star
17

soft-renderer

A software 3D model renderer of 2k lines of code, with ray tracing and phong shading support.
C++
3
star
18

crypto_lab

crypto_lab
C++
2
star
19

files

a repo for misc files and pages
C++
2
star
20

wireshark-manuf

hold a copy of wireshark manuf since the original link is 404
2
star
21

easy_od

an easy implementation of optimized distance of binary code
MATLAB
2
star
22

wangyu-

2
star
23

wind

ๆ–‡ๆ›ฒๆ˜Ÿๆธธๆˆใ€Š้ฃŽๆ–—ใ€‹lava็งปๆค็‰ˆๆบ็  (ๅพˆไน…ไปฅๅ‰็š„ไปฃ็ )
2
star
24

usaco_solutions

usaco solutions
C++
1
star
25

mlsys20_workshop

C++
1
star
26

tunnels

some tunnels
C++
1
star
27

CobuildConv

based on http://hp.vector.co.jp/authors/VA005784/cobuild/cobuildconv.html
Ruby
1
star
28

SWRR-dict

a dict plugin for chrome
HTML
1
star
29

websec

websec codes, only used for personal backup
PHP
1
star
30

energy_aware_dnn

Roff
1
star