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

Sunday, December 26, 2021

dotnet 6 raspbian

basado en  https://mycsharpdeveloper.wordpress.com/2021/09/21/installing-net-6-on-raspberry-pi-4-and-get-cpu-temperature-via-c/


wget https://download.visualstudio.microsoft.com/download/pr/d43345e2-f0d7-4866-b56e-419071f30ebe/68debcece0276e9b25a65ec5798cf07b/dotnet-sdk-6.0.101-linux-arm64.tar.gz


mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-6.0.101-linux-arm64.tar.gz -C $HOME/dotnet

export DOTNET_ROOT=$HOME/dotnet

export PATH=$PATH:$HOME/dotnet


# Run nano editor to edit the .bashrc

nano ~/.bashrc

# Copy the commands below to the .bashrc

export DOTNET_ROOT=$HOME/dotnet

export PATH=$PATH:$HOME/dotnet

 

# Run this command so the terminal session will use the new settings

source ~/.bashrc

#Crea una app por consola para validar que funciono la instalacion

mkdir hello-DotNet6

cd hello-DotNet6/

dotnet new console


#para ejecutar el hola Mundo

dotnet run 


Saturday, December 25, 2021

broken packages - The following packages have unmet dependencies - E: Broken packages

para el error:

The following information may help to resolve the situation:  The following packages have unmet dependencies:  vlc-bin : Depends: libvlc-bin (= 3.0.12-0+deb10u1+rpt1+arm64) but 3.0.12-0+deb10u1+rpt3 is to be installed  vlc-plugin-skins2 : Depends: vlc-plugin-qt (= 3.0.12-0+deb10u1+rpt3) but 3.0.12-0+deb10u1+rpt1+arm64 is to be installed E: Broken packages 


sudo apt full-upgrade sudo apt dist-upgrade

Friday, December 3, 2021

SSH no funciona raspbian - Failed to start OpenBSD Secure Shell server.

sudo service sshd restart

Job for ssh.service failed because the control process exited with error code.

See "systemctl status ssh.service" and "journalctl -xe" for details.

-- The unit ssh.service has entered the 'failed' state with result 'exit-code'.

Dec 03 20:28:09 pbeltran.ddns.net systemd[1]: Failed to start OpenBSD Secure Shell server.

-- Subject: A start job for unit ssh.service has failed

-- Defined-By: systemd

ssh -t

ssh: error while loading shared libraries: /usr/lib/aarch64-linux-gnu/libgssapi_krb5.so.2: invalid ELF header

sudo apt-get install libgssapi-krb5-2 --reinstall

sudo service smbd stop

sudo systemctl disable smbd

sudo reboot

ssh: error while loading shared libraries: /usr/lib/aarch64-linux-gnu/libkrb5.so.3: invalid ELF header

sudo apt-get install libk5crypto3 --reinstall

ssh: error while loading shared libraries: /usr/lib/aarch64-linux-gnu/libkrb5.so.3: invalid ELF header

sudo apt-get install -y libkrb5-3 --reinstall