403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/Tools/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/Tools/scripts/notconnected
#!/bin/sh

# MAINTAINER=   ports@FreeBSD.org
# all committers may commit to this file without approval

PATH=/rescue:$PATH

if [ -z "$PORTSDIR" ]; then
  PORTSDIR=/usr/ports
fi

echo "****************** No entry for dir in category Makefile"
#### dir -> Makefile
cd $PORTSDIR

ports=$(find $PORTSDIR -type d -depth 2 | egrep -v '.svn|CVS|.git|Tools')
for port in $ports; do
  cat=$(echo $port  |awk -F'/' '{print $1}')
  portname=$(echo $port |awk -F'/' '{print $2}')

  rc=$(grep -c " $portname$" $PORTSDIR/$cat/Makefile)
  if [ $rc -ne 1 ]; then
    echo "$cat/$portname"
  fi
done

echo "***************** No corresponding dir for category Makefile entry"
#### Makefile -> dir
cd $PORTSDIR
categories=$(ls -1d * |grep -v [A-Z] |grep -v distfiles)

for cat in $categories; do
  cd $PORTSDIR/$cat
  ports=$(grep SUBDIR Makefile |awk '{print $3}')
  for port in $ports; do
    if [ ! -d $port ]; then
      echo "$cat/$port"
    fi
  done
done


Youez - 2016 - github.com/yon3zu
LinuXploit