Saturday, January 22, 2022

Default scan nitko Kali linux

  nikto -h 192.168.1.216 -p 80

- Nikto v2.1.6

---------------------------------------------------------------------------

+ Target IP:          192.168.1.216

+ Target Hostname:    192.168.1.216

+ Target Port:        80

+ Start Time:         2022-01-22 23:45:30 (GMT0)

---------------------------------------------------------------------------

+ Server: Apache/2.4.41 (Ubuntu)

+ The anti-clickjacking X-Frame-Options header is not present.

+ The X-XSS-Protection header is not defined. This header can hint to the user agent to protect against some forms of XSS

+ The X-Content-Type-Options header is not set. This could allow the user agent to render the content of the site in a different fashion to the MIME type

+ No CGI Directories found (use '-C all' to force check all possible dirs)

+ Server may leak inodes via ETags, header found with file /, inode: 2aa6, size: 5d634201ca691, mtime: gzip

+ Allowed HTTP Methods: HEAD, GET, POST, OPTIONS

+ /info.php: Output from the phpinfo() function was found.

+ OSVDB-3233: /info.php: PHP is installed, and a test script which runs phpinfo() was found. This gives a lot of system information.

+ OSVDB-5292: /info.php?file=http://cirt.net/rfiinc.txt?: RFI from RSnake's list (http://ha.ckers.org/weird/rfi-locations.dat) or from http://osvdb.org/


+ 7915 requests: 0 error(s) and 8 item(s) reported on remote host

+ End Time:           2022-01-22 23:48:25 (GMT0) (175 seconds)

---------------------------------------------------------------------------

+ 1 host(s) tested


Thursday, January 13, 2022

Agregar la fecha por consola

Agregar la fecha por consola

para mostrar actual fecha y hora

date

sudo hwclock --show


sudo date --set="2022-01-13 08:23:59.990"


by

https://askubuntu.com/questions/679988/how-to-change-ubuntus-server-date-and-time-via-command-line 

Thursday, January 6, 2022

Detalle de espacio utilizado por las bases de datos de un servidor sql server

select 

    d.name as DatabaseName,

    a.name as FileName,

    FG.name as FileGroup,

    a.physical_name as FilePath,

    a.type_desc as FileType,

    CONVERT(DECIMAL(12,2),ROUND(a.size/128.000,2)) AS [Size],

    CONVERT(DECIMAL(12,2),ROUND(FILEPROPERTY(a.name,'SpaceUsed')/128.000,2)) AS [Used] ,

    CONVERT(DECIMAL(12,2),ROUND((a.size-FILEPROPERTY(a.name,'SpaceUsed'))/128.000,2)) AS [Free]

from sys.databases d

left join sys.master_files a on d.database_id = a.database_id

left join sys.filegroups FG on

    FG.data_space_id = a.data_space_id;

Saturday, January 1, 2022

instalar xrdp

#instalar xrdp raspbian

sudo apt update

sudo apt install xrdp


sudo systemctl enable xrdp

sudo systemctl restart xrdp