Having some spare time during Christmas, i spent sometime to install Redhat on my Imac 2011. I followed this guides: https://www.mimiz.fr/install-rhel7-virtualbox-macos.html It’s very straight forward, you don’t need to read all, but you might face some challenges like me. My issue was with internet connection, i do not have internet after the installation. It turned out that i haven’t turned on the network during the installation. To fix this i have to do this manually by run this command: ifup enp0s3 In order to install additional software, we normally use yum utility to install. Redhat require us to register with their subscription manager, it’s free.Read More →

I’m using Curl 7.5.x, 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 7.46 cd ~ sudo apt-get build-dep curl wget http://curl.haxx.se/download/curl-7.46.0.tar.bz2 tar -xvjf curl-7.46.0.tar.bz2 cd curl-7.46.0 ./configure –with-nghttp2 –with-ssl –with-libssl-prefix=/usr/local/ssl # This is the line I had the most trouble with, especially figure out –with-libssl-prefix make sudo make installRead More →

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 your internet traffic – Decrypt https (SSL) traffic – It’s the middle man, it allows you to inject python code to change the request/response header between the client and the server. I have a use case to use it: I need to use Chrome in Linux and it must pass the NTLM authentication by windows server , Chrome can do it in Windows but In Linux , there is no way it can pickup credential andRead More →

nmap –script ssl-enum-ciphers -p 443 www.google.com you can test your script to see the difference. Here are some url that only support a specific tls version. This subdomain and port only supports TLSv1.2 https://tls-v1-2.badssl.com:1012/ This subdomain and port only supports TLSv1.1 https://tls-v1-1.badssl.com:1011/ This subdomain and port only supports TLSv1.0 https://tls-v1-0.badssl.com:1010/Read More →

When you setup a cronjob file (/etc/cron.d/filename) , 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 run well such as: service ( because it can’t find service run file location)Read More →

rrdcached is a daemon that receives updates to existing RRD files, accumulates them and, if enough have been received or a defined time has passed, writes the updates to the RRD file. A flush command may be used to force writing of values to disk, so that graphing facilities and similar can work with up-to-date data. rrdcached uses the line protocol to communicate with client. When we start rrdcached , it will listen on port 42217 and create a socket file.  We can telnet to port 42217  or use ncat to create a connection to socket file. telnet localhost 42217     or nc -U /var/run/rrdcached/rrdcached.sock AfterRead More →

When we add new data: # vi /etc/apt/sources.list … deb http://deb.debian.org/debian stretch main contrib non-free deb-src http://deb.debian.org/debian stretch main contrib non-free we got some errors below: # apt-get update Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Fetched 172 kB in 2s (73.3 kB/s) Reading package lists… Done root@netsgn:~/soft# nano /etc/apt/sources.list root@netsgn:~/soft# apt-get update Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:4 https://packagecloud.io/grafana/stable/debian stretch InRelease [23.2 kB] Err:4 https://packagecloud.io/grafana/stable/debian stretch InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 37BBEE3F7AD95B3F Fix: #Read More →