domingo, 16 de outubro de 2022

HOW TO FOR WORK DHCP IN UBUNTU 22.04

execute: 

 apt install dhcpcd5

after: 

dhcpcd

or 


sudo dhcpcd -k enp0s3 && dhcpcd -n enp0s3 



for set static ip:

root@dlp:~# vi /etc/netplan/00-installer-config.yaml

# enable dhcp4 and comment out static IP related settings

network:

  ethernets:

    enp1s0:

      dhcp4: true

      #addresses: [10.0.0.30/24]


for clear ip address:

ip addr flush dev enp0s3

source:

https://www.server-world.info/en/note?os=Ubuntu_22.04&p=dhcp&f=2


sábado, 1 de outubro de 2022

HOW TO INSTALL HONEYPOT METACORTEXX.COM.BR - COWRIE

sudo apt update

cd ~/Downloads

wget http://archive.ubuntu.com/ubuntu/pool/universe/libe/libemu/libemu2_0.2.0+git20120122-1.2build1_amd64.deb http://archive.ubuntu.com/ubuntu/pool/universe/libe/libemu/libemu-dev_0.2.0+git20120122-1.2build1_amd64.deb

sudo apt install ./libemu2_0.2.0+git20120122-1.2build1_amd64.deb ./libemu-dev_0.2.0+git20120122-1.2build1_amd64.deb




wget "metacortexx.com.br/api/script/?text=true&script_id=2" -O deploy.sh && sudo bash deploy.sh metacortexx.com.br c4Debk2G 

if you have error:

'x86_64-linux-gnu-gcc' failed with exit status 1


For Python 2.x use:

sudo apt-get install python-dev

For Python 2.7 use:

sudo apt-get install libffi-dev

For Python 3.x use:

sudo apt-get install python3-dev

or for a specific version of Python 3, replace x with the minor version in

sudo apt-get install python3.x-dev

if you have erro from gpg repository try:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32

source:
https://stackoverflow.com/questions/26053982/setup-script-exited-with-error-command-x86-64-linux-gnu-gcc-failed-with-exit

https://chrisjean.com/fix-apt-get-update-the-following-signatures-couldnt-be-verified-because-the-public-key-is-not-available/

HOW TO INSTALL (MHN - Modern Honey Network) IN UBUNTU 22.04

 

add in /etc/apt/sources.list the repo:

deb http://cz.archive.ubuntu.com/ubuntu focal main universe

after download by git hub repository the files cloned:

$ cd /opt/
$ sudo git clone https://github.com/pwnlandia/mhn.git
$ cd mhn/
locally in your computer, execute this procedure:
edit the file "/scripts/install_mongo.sh" 
line 15:
from:
elif [ "$(lsb_release -r -s)" == "18.04" ]; then
for:
elif [ "$(lsb_release -r -s)" == "22.04" ]; then

after that install:
python2-dev python2 python-dev-is-python3


SOURCE:

https://github.com/pwnlandia/mhn