Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
linux-headers-4.4.0-119 /
samples /
pktgen /
Delete
Unzip
Name
Size
Permission
Date
Action
functions.sh
2.89
KB
-rw-r--r--
2016-01-11 00:01
parameters.sh
2.43
KB
-rw-r--r--
2016-01-11 00:01
pktgen_bench_xmit_mode_netif_receive.sh
2.6
KB
-rwxr-xr-x
2016-01-11 00:01
pktgen_sample01_simple.sh
1.84
KB
-rwxr-xr-x
2016-01-11 00:01
pktgen_sample02_multiqueue.sh
2.11
KB
-rwxr-xr-x
2016-01-11 00:01
pktgen_sample03_burst_single_flow.sh
2.47
KB
-rwxr-xr-x
2016-01-11 00:01
Save
Rename
#!/bin/bash # # Simple example: # * pktgen sending with single thread and single interface # * flow variation via random UDP source port # basedir=`dirname $0` source ${basedir}/functions.sh root_check_run_with_sudo "$@" # Parameter parsing via include # - go look in parameters.sh to see which setting are avail # - required param is the interface "-i" stored in $DEV source ${basedir}/parameters.sh # # Set some default params, if they didn't get set [ -z "$DEST_IP" ] && DEST_IP="198.18.0.42" [ -z "$CLONE_SKB" ] && CLONE_SKB="0" # Example enforce param "-m" for dst_mac [ -z "$DST_MAC" ] && usage && err 2 "Must specify -m dst_mac" # Base Config DELAY="0" # Zero means max speed COUNT="100000" # Zero means indefinitely # Flow variation random source port between min and max UDP_MIN=9 UDP_MAX=109 # General cleanup everything since last run # (especially important if other threads were configured by other scripts) pg_ctrl "reset" # Add remove all other devices and add_device $DEV to thread 0 thread=0 pg_thread $thread "rem_device_all" pg_thread $thread "add_device" $DEV # How many packets to send (zero means indefinitely) pg_set $DEV "count $COUNT" # Reduce alloc cost by sending same SKB many times # - this obviously affects the randomness within the packet pg_set $DEV "clone_skb $CLONE_SKB" # Set packet size pg_set $DEV "pkt_size $PKT_SIZE" # Delay between packets (zero means max speed) pg_set $DEV "delay $DELAY" # Flag example disabling timestamping pg_set $DEV "flag NO_TIMESTAMP" # Destination pg_set $DEV "dst_mac $DST_MAC" pg_set $DEV "dst $DEST_IP" # Setup random UDP port src range pg_set $DEV "flag UDPSRC_RND" pg_set $DEV "udp_src_min $UDP_MIN" pg_set $DEV "udp_src_max $UDP_MAX" # start_run echo "Running... ctrl^C to stop" >&2 pg_ctrl "start" echo "Done" >&2 # Print results echo "Result device: $DEV" cat /proc/net/pktgen/$DEV