Get-NetTCPConnection
Get-NetTCPConnection -State Listen,Bound
Get-NetTCPConnection -State Listen,Bound | ? LocalAddress -ne 127.0.0.1
Get-NetTCPConnection -LocalPort 1025
Get-NetTCPConnection -LocalPort 1025 | select local*,remote*,state,@{Name="Process";Expression={(Get-Process -Id $_.OwningProcess).ProcessName}}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function refreshAt(hours, minutes, seconds) { | |
var now = new Date(); | |
var then = new Date(); | |
if(now.getHours() > hours || | |
(now.getHours() == hours && now.getMinutes() > minutes) || | |
now.getHours() == hours && now.getMinutes() == minutes && now.getSeconds() >= seconds) { | |
then.setDate(now.getDate() + 1); | |
} | |
then.setHours(hours); |
- change from buster to bullseye
- sudo apt install libnet-cidr-lite-perl libtext-csv-xs-perl libgeoip2-perl
for day of writing, there is a problem with building by dkms this package xtables-addons-common so wehave to install this from source
- sudo apt install pkg-config libxtables-dev
- wget http://inai.de/files/xtables-addons/xtables-addons-3.13.tar.xz
- tar xf xtables-addons-3.13.tar.xz
- cd xtables-addons-3.13/
- ./configure
- make
docker windows bind: An attempt was made to access a socket in a way forbidden by its access permissions.
netsh int ipv4 show excludedportrange protocol=tcp
https://dandini.wordpress.com/2019/07/15/administered-port-exclusions-blocking-high-ports/
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 3.2G 329M 2.9G 11% /run
/dev/dm-0 55G 55G 0 100% /
tmpfs 7.9G 37M 7.8G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
tmpfs 100K 0 100K 0% /run/lxcfs/controllers
cgmfs 100K 0 100K 0% /run/cgmanager/fs
sudo systemctl stop openvas-manager
sudo greenbone-nvt-sync
sudo greenbone-certdata-sync
sudo greenbone-scapdata-sync
sudo systemctl start openvas-scanner
sudo systemctl start openvas-manager
sudo openvasmd --update --verbose --progress
- wget https://raw.githubusercontent.com/mimura1133/linux-vm-tools/master/kali/2020.x/install.sh
- chmod +x install.sh
- sudo ./install.sh
- sudo poweroff
- run powershell as admin
- Set-VM "<YOUR VM NAME HERE>" -EnhancedSessionTransportType HVSocket
- poweron kali vm
- download: MVMC
- (optional) edit with text editor vmdk file and remove (or comment out) all below line '# The Disk Data Base '
- run powershell as admin
- > Import-Module 'c:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'
- > ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath source.vmdk -DestinationLiteralPath dest.vhdx -VhdType DynamicHardDisk -VhdFormat Vhd
or
qemu-img convert -f vmdk -O vhdx -o subformat=dynamic source.vmdk dest.vhdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import servicemanager | |
import socket | |
import sys | |
import win32event | |
import win32service | |
import win32serviceutil | |
class TestService(win32serviceutil.ServiceFramework): | |
_svc_name_ = "TestService" |
NewerOlder