403Webshell
Server IP : 45.40.142.9  /  Your IP : 216.73.216.250
Web Server : Apache
System : Linux s45-40-142-9.secureserver.net 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : bayspec ( 506)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/ssl/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/ssl/bin/diff-jars
#!/bin/sh
# 
# Show jar content difference
#
# JPackage Project <http://www.jpackage.org/>
#   Guillaume Rousse <guillomovitch@sourceforge.net>
#
# 1.0  - initial release
# 1.1  - corrected a typo
#      - used /tmp for temp files
# 1.2  - allow diffing two jars with same basename
#      - use mktemp(1) for creating temp files
# 1.3  - fix java-functions location

# Source functions library
if [ -r /usr/share/java-utils/java-functions ] ; then 
  . /usr/share/java-utils/java-functions
else
  echo "Can't find functions library, aborting"
  exit 1
fi

# Check arguments
if [ $# != 2 ] ; then
	echo  "usage: `basename $0` jar1 jar2"
	exit 1
fi

if [ -r "$1" ] ; then
	JAR1=$1
	LIST1=/tmp/`basename "$JAR1"`.list.XXXXXX
else
	echo "Jar '$1' not readable"
	exit 1
fi

if [ -r "$2" ] ; then
	JAR2=$2
	LIST2=/tmp/`basename "$JAR2"`.list.XXXXXX
else
	echo "Jar '$2' not readable"
	exit 1
fi

# Get jar command
set_jvm
JAR=$JAVA_HOME/bin/jar

LIST1=`mktemp "$LIST1"`
LIST2=`mktemp "$LIST2"`

# Get sorted jar content
$JAR tvf "$JAR1" | awk -F" " '{ print $8}' | sort > "$LIST1"
$JAR tvf "$JAR2" | awk -F" " '{ print $8}' | sort > "$LIST2"

# Compute difference
diff -Naur "$LIST1" "$LIST2"

# Remove files
rm -f "$LIST1"
rm -f "$LIST2"

Youez - 2016 - github.com/yon3zu
LinuXploit