segunda-feira, 13 de novembro de 2017

FORTIGATE TROUBLESHOOTING IPS ENGINE


First  execute:

#diag test application ipsmonitor

IPS Engine Test Usage:
1: Display IPS engine information
2: Toggle IPS engine enable/disable status
3: Display restart log
4: Clear restart log
5: Toggle bypass status
6: Submit attack characteristics now
97: Start all IPS engines
98: Stop all IPS engines
99: Restart all IPS engines and monitor

After list those commands for choose some option execute the command like that:

sample:
diag test application ipsmonitor 99

sábado, 11 de novembro de 2017

HOW TO INSTALL OWASP ZAP IN UBUNTU 17.10

sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/cabelo/xUbuntu_17.04/ /' > /etc/apt/sources.list.d/owasp-zap.list"
sudo apt-get update
sudo apt-get install owasp-zap
You can add the repository key to apt. run:

wget -nv https://download.opensuse.org/repositories/home:cabelo/xUbuntu_17.04/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo apt-get update


procedure source:
https://software.opensuse.org/download.html?project=home%3Acabelo&package=owasp-zap

domingo, 5 de novembro de 2017

HOW TO EXECUTE COMMAND FOR KASPERSKY ENDPOINT SECURITY FOR LINUX - UBUNTU

FOR SEE SOME CONTRACTS AND TERMS AND INSTALL DEFINITION:
cd /opt/kaspersky/kesl/doc
ls
autoinstall.ini  ksn_license.de  ksn_license.en  ksn_license.fr  ksn_license.ru  legal_notices.txt  license.de  license.en  license.fr  license.ru


for check configuration used for installation you can cat the file: autoinstall.ini 

FOR EXECUTE BINARY FILES:

cd /opt/kaspersky/kesl/bin

list files:
fanotify-checker  kesl-control  kesl_launcher.sh  kesl-setup.pl  kesl-uninstall.pl  wdserver


#LIST INFORMATION OF INSTALLED VERSION

./kesl-control -S

#RESULT:

Name                           : Kaspersky Endpoint Security 10 for Linux
Version                        : 10.0.0.3458
Key status                     : Valid
License expiration date        : 2017-12-04
Backup state                   : No objects in backup
Backup space usage             : Backup size is unlimited
Scan_My_Computer last run date : Never run
Anti-virus databases loaded    : Yes
Anti-virus databases date      : 2017-11-05 06:36:00
Anti-virus databases records   : 11164094
Protection status              : OAS enabled
KSN state                      : On


#LIST TASKS
./kesl-control -T --get-task-list

#RESULT

Number of tasks: 10
Name: File_Monitoring
    ID     : 1
    Type   : OAS
    State  : Started
Name: Scan_My_Computer
    ID     : 2
    Type   : ODS
    State  : Stopped
Name: Scan_File
    ID     : 3
    Type   : ODS
    State  : Stopped
Name: Boot_Scan
    ID     : 4
    Type   : BootScan
    State  : Stopped
Name: Memory_Scan
    ID     : 5
    Type   : MemoryScan
    State  : Stopped
Name: Update
    ID     : 6
    Type   : Update
    State  : Stopped
Name: Rollback
    ID     : 7
    Type   : Rollback
    State  : Stopped
Name: Retranslate
    ID     : 8
    Type   : Retranslate
    State  : Stopped
Name: License
    ID     : 9
    Type   : License
    State  : Started
Name: Backup
    ID     : 10
    Type   : Backup
    State  : Started


#RESUME TASK SELECTED
./kesl-control -T --resume-task <SET ID>


#CHECK DE SCHEDULE FROM THE TASK
./kesl-control -T --get-schedule <SET ID>

#GET SETTINGS OF TASK 
 ./kesl-control -T --get-settings <SET ID>

sábado, 4 de novembro de 2017

HOW TO WORK USB DEVICES ON VIRTUAL BOX ON UBUNTU 17.10

sudo usermod -aG vboxusers <youruser>

sudo apt-get install gnome-system-tools
sudo apt install virtualbox virtualbox-guest-additions-iso
sudo apt install virtualbox-ext-pack
sudo apt-get install gnome-system-tools

restart your computer

domingo, 29 de outubro de 2017

HOW TO EDIT A WALLPAPER FOLDER AND DEFAULT FOLDER



ADD THIS FILDE CODE:

<wallpaper>
     <name><NAME OF YOUR WALLPAPER></name>
     <filename>/usr/share/backgrounds/<NAME OF YOUR WALLPAPER>.jpg</filename>
     <options>zoom</options>
     <pcolor>#000000</pcolor>
     <scolor>#000000</scolor>
     <shade_type>solid</shade_type>
 </wallpaper>

INSIDE OF THIS FILE :
root@mac-os:/usr/share/gnome-background-properties# vi zesty-wallpapers.xml


MOVE YOUR WALLPAPER FOR THIS FOLDER
root@mac-os:/usr/share/backgrounds

and just try to change your wallpaper.

sexta-feira, 6 de outubro de 2017

HOW TO CLONE VIRTUAL MACHINE FROM ORACLE VM (VIRTUAL BOX)

After copy/ past your virtual machine, just open terminal and access the folder of virtual machine and execute this command:
VBoxManage internalcommands sethduuid <youmachine>.vdi

sexta-feira, 29 de setembro de 2017

HOW TO INSTALL GRAFANA IN UBUNTU 16.04 LTS AND INTEGRATE WITH GRAFANA

wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_4.5.2_amd64.deb
sudo apt-get install -y adduser libfontconfig
sudo dpkg -i grafana_4.5.2_amd64.deb
sudo service grafana-server start
sudo update-rc.d grafana-server defaults
sudo systemctl enable grafana-server.service
http://<yourip>:3000/login

for access your grafana server :
http://<your.ip>:3000

default user: admin
defaul pass: admin

for integration with zabbix execute:

sudo grafana-cli plugins list-remote

sudo grafana-cli plugins install alexanderzobnin-zabbix-app




plugins granafa installed:

grafana-cli plugins install raintank-worldping-app


terça-feira, 26 de setembro de 2017

HOW TO GRANT REMOTE ACCESS ON MYSQL 14.14 AND UBUNTU 16.04 LTS

Access you mysql server by terminal :
vi /etc/mysql/mysql.conf.d/mysqld.cnf
comment the line:

from: bind-address = 127.0.0.1
for: #bind-address = 127.0.0.1

execute: service mysql restart

after that, connect on your mysql server and execute this command: 

GRANT ALL PRIVILEGES ON *.* TO '<YOURUSERNAME>'@'<YOUIPD>' IDENTIFIED BY '<YOUPASSWORD>' WITH GRANT OPTION;



SHOW GRANTS;

LINUX COMMANDS

In terminal execute vi and if you want copy past line execute: Y Y P
For include start service: update-rc.d <linux service> enable/disable
For list services for list to start automatically: ls /etc/rc*.d
For check distr:  lsb_release -a