Archivo de la categoría: linux

Clone Linux user (copy user, based on another one)

It gets the source user’s groups (not including the group that’s the same as their login) and shell, then creates a new user with the same shell and secondary groups. There is no error checking, it’s just a quick and dirty clone script.

Check If A Linux System Is Physical Or Virtual Machine

Method 1 – Using Dmidecode utility The easiest way to find if we are working on a virtual or physical machine is using dmidecode utility. Dmidecode, DMI table decoder, is used find your system’s hardware components, as well as other useful information such as serial numbers and BIOS revision. Dmidecode comes pre-installed with most Linux distributions. Just in… Leer más »

Pulseaudio

Pulseaudio should be started at startup but you can manually start it with : pulseaudio –start

Hak5 is inspired to elevate the InfoSec industry

https://shop.hak5.org Hak5 is inspired to elevate the InfoSec industry by educating, equipping and encouraging an all-inclusive community – where all hackers belong. USB RUBBER DUCKY A «flash drive» that types keystroke injection payloads into unsuspecting computers at incredible speeds. As seen on Mr. Robot.

Can’t locate Http_get.pm in @INC (@INC contains: /etc/perl

Can’t locate Http_get.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.26.0 /usr/local/share/perl/5.26.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl .) at ./dnsexit/setup.pl line 12. BEGIN failed–compilation aborted at ./dnsexit/setup.pl line 12. copy Http_get.pm into /usr/share/perl5 as root

tigervnc and ubuntu 18.04

# yum -y install tigervnc tigervnc-server vncpasswd # firewall-cmd –permanent –zone=public –add-port=5901/tcp success # firewall-cmd –reload success Running VNC as a System Service Next, we’ll set up the VNC server as a systemd service so we can start, stop, and restart it as needed, like any other service. This will also ensure that VNC starts… Leer más »

SNMP on Centos 7.5 config

InstallInstall the service using our loved yum. yum install net-snmp net-snmp-utils ConfigTo the configuration; which can be found here : /etc/snmp/snmpd.confI however remove the original one -most of the time- and just copy/paste the one I use on all servers; Keep the original for reference, although its very verbose (IMHO) mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.ori This is the config… Leer más »