Archives for Linux - Page 2
Redhat: Install mysql
I have installed mysql many many times – i decided to save a note for myself for later installation. This is to install msyql server on Redhat 7. Below...
Sharing files between MacOS and Redhat
First , you need to share your files in MacOS Do the following things in redhatyum install samba-client cifs-utils edit this file : /etc/fstabad this line then run: mount...
Redhat SELilnux – Docker – volume – permission denied
I have a folder like this: total -rwxrwx---. 1 root vboxsf 101 Dec 25 08:03 drwxrwx---. 1 root vboxsf 64 Dec 24 22:43 test drwxrwx---. 1 root...
Install Redhat Server on MacOS with Virtualbox
Having some spare time during Christmas, i spent sometime to install Redhat on my Imac 2011. I followed this guides: It’s very straight forward, you don’t need to...
Curl – NTLM Support
I’m using Curl , but somehow when i use the –ntlm option, the server seems not accepted. After many tries, i finally make it worked by install the curl...
Mitmproxy – how to capture SSL traffic
Mitmproxy is a python proxy, it’s very light. Basically it’s like a normal proxy but it offers some advanced features that most developer/ hacker like to have: – Watching...
tls v1.0 v1.1 v1.2 – how to check which tls version your server support?
nmap –script ssl-enum-ciphers -p 443 you can test your script to see the difference. Here are some url that only support a specific tls version. This subdomain and...
Linux: cronjob
When you setup a cronjob file (/) , the file should include the path below: PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin this is because if you don’t set the path, some command might not...
Linux: send all error to another program (PIPE)
You can use the option : 2>&1 for this purpose. 2>&1 |
Linux : Delete files older than number of days
We first need to list files that are older than number of days (5) find /Data/foldername -name *.mp4 -type f -mtime +5 -exec ls -lh {} \; If that...