Ir para conteúdo
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Executar Script Ssh

Featured Replies

Postado

Encontrei um script aqui no fórum para fazer uma varredura por arquivo shell no servidor, segue abaixo o código:

#!/bin/bash
#Scanning all users directory for various php shell
# Below command is one line so see that its one line in your script or else it will generate error

echo "No PHP Shell was Found" > /root/scan.txt
/bin/egrep "cgitelnet|webadmin|PHPShell|tryag|r57shell|c99shell|noexecshell|/etc/passwd|revengans|myshellexec" /home/*/public_html -R | cut -d: -f1 | uniq > /root/scan.txt

/bin/cat /root/scan.txt | mail -s "PHP Shell Scan" [email="user@domain.com"]user@domain.com[/email]

#Replace your email address above

#Cron Settings
# 0 6 * * * PATH TO SCRIPT

Gostaria de saber como faço pra executar ele via ssh.


Postado

Primeiro, ele deve estar com permissões de executável:

 

chmod a+x script.sh

 

Para rodar, basta fazer:

 

sh script.sh

 

ou

 

./script.sh

 

Obs.: Como é um script para controle de segurança do servidor, você pode ativar uma tarefa Cron para ele...

 

Abraços! :)


Visitante
Este tópico está impedido de receber novos posts.

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Informação Importante

Concorda com os nossos termos?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.