Redhat 7: iptables not saved after a reboot
All my iptables rules gone when i reboot Install iptables-save service: Save your rules Make sure that your iptables service is onRead More →
All my iptables rules gone when i reboot Install iptables-save service: Save your rules Make sure that your iptables service is onRead More →
Everytime i restart my machine, the network interface is always down, i need to run this command : ifup enp0s3 Here is the fix: Open the config file /etc/sysconfig/network-scripts/ifcfg-enp0s3 Change the value: ONBOOT=no to ONBOOT=yes If you don’t see this value, add itRead More →
I think i need to bookmark this website https://mitmproxy.org/ . This is an open source proxy. Why do i bookmark this instead of other proxy? The beauty of this proxy is coming from the fact it can interfere with the content, meaning you can modify the web traffic between your browser , it’s like the middle man , it can watch the traffic and modify it as well. Another great feature is that it will also allow you to capture https traffic, this is done by installing a root certificate to your machine. This will remove all https warning.Read More →
I fixed that issue by usingRead More →
I hava a small utility which accept some input from command line from another system. To keep the utility more open, i don’t want to restrict some parameters, the caller can provide more parameters, i will just need to ignore them. In Python, we use argparse for this job, by default if the user provide more parameters that you expect, it will trigger the error. There is a way to overcome this Below is the script i use for this job, Read More →
Proxy: Understanding the Role and Importance in Networking and Security In the world of networking and internet security, the term proxy is widely used, but it can often be misunderstood or underappreciated. A proxy serves as an intermediary between a client and a server, offering various benefits like increased privacy, security, and performance. Whether you’re managing a network or just browsing the web, understanding proxies and how they work can help you make informed decisions about your digital interactions. In this article, we’ll explore what a proxy is, how it functions, and the different types of proxies commonly used. We’ll also look at the benefitsRead More →
Supposed that you have a command line like this: How do you get that options in php? Please note the “:” in the option myscript.php –url “http://www.google.com” –proxy “127.0.0.1:8080” Read More →
let say you have a query string ?var1=test;abc&var2=ok when you use function parse_qsl to parse query to get the variable , you will see you have a several variables: var1 = testabc=””var2=okThis is because parse_qsl use “&” and “;” as a separate , to overcome this we need to replace “;” with %3B , then we’ll replace it back in our variable valuesRead More →
When you start to write your own http python server, the easiest way is to start with with BaseHTTPServer class. there are many behavior that you want to customize such as the timeout , or error handling. This is the link to original BaseHTTPServer, it’s for your reference to modify it https://svn.python.org/projects/python/trunk/Lib/BaseHTTPServer.py This is my timeout and finish override functionRead More →
Somehow my server opens port 111, i don’t have time to investigate which program is opening that port, my quick fix was to block that port from externalRead More →
Designed using Responsive Brix. Powered by WordPress.