Use different shell with su
$ su -s /bin/bash <user>
Use different shell with su
$ su -s /bin/bash <user>
[root@joshi ~]# cat /etc/profile | grep shopt
shopt -s syslog_history
/var/log/shell-commands.log
.
$ sudo systemctl stop osqueryd.service
$ sudo yum remove osquery
$ sudo rm -rf /var/osquery /var/log/osquery /etc/osquery
#!/bin/bash | |
# other interesting memory utilization scripts | |
# https://github.com/jhclark/memusg | |
# https://github.com/shovon8/sysmon/blob/master/sysmon | |
# https://gist.github.com/taoliu/1572440 | |
mem_info=$(ps -o pid,user,%mem,command ax | grep -v PID | awk '/[0-9]*/{print $1 ":" $2 ":" $3 ":" $4}') |
This error is because present unprivileged user does not belong to the docker group.
So, you can do this:
$ sudo usermod -a -G docker [user]
You can check it was successful by doing grep docker /etc/group
and see something like this:
$ crontab -e
59 23 * * * /home/joshi/bin/backup.sh > /home/joshi/logs/backup.log 2>&1
In the above:
/home/joshi/logs/backup.log indicates that the standard output of the backup.sh script will be redirected to the backup.log file.
Use this method if you want to use HTTPS (HTTP over TLS) to secure your Apache HTTP or Nginx web server, and you want to use a Certificate Authority (CA) to issue the SSL certificate. The CSR that is generated can be sent to a CA to request the issuance of a CA-signed SSL certificate. If your CA supports SHA-2, add the -sha256 option to sign the CSR with SHA-2.
Creating a 2048-bit private key (domain.key) and a CSR (domain.csr) from scratch:
openssl req -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr
Creating a 2048-bit private key and public key
Nuclei is becoming a de-facto tool for configurable targeted scanning based on templates offering massive extensibility and ease of use. It is often used to send requests across targets based on a template leading to zero false positives and providing effective scanning for known paths. The tool is essentially useful during initial reconnaissance phase to quickly check for low hanging fruits or CVEs across targets that are known and easily detectable.
Download latest release of nuclei from git link to download nuclei - https://github.com/projectdiscovery/nuclei/releases/download/v2.3.1/nuclei_2.3.1_linux_amd64.tar.gz
Copy latest release of nuclei templates from git link to download nuclei templates - https://codeload.github.com/projectdiscovery/nuclei-templates/tar.gz/refs/tags/v8.1.7