Sometimes you may need to repeat lots of linux command on terminal for any aim. It is some time so boring to type all the commands again and again so the solution to create own commands to execute all the repetition in one.
All the commands are kept on /bin directory s we just need to create a file and name as the command that we’ll use. Then we need to make the file readable and executable. Continue Reading
I started to use it for my coding experiences and it give vast of benefits about finding the measnings of error keys.
If you get that warning it means in your php installation you have no sqlite extension so just install it with that command.
apt-get install php5-sqlite
It is good if you are working on console and you don’t want to change it for any little text addition to any file. Here is the command:
echo “this text will be added” | sudo tee “path/to/the/file.txt”
Question: Do you think hackthissite.org is a good tool to master web hacking?
Answer: Thanks to Frank Smith
The missions on that website are pretty realistic in terms of real world hacking. But if you finish all the missions you will have only scratched the surface of “hacking”. There are literally dozens** of site that will provide you similar missions but they all lack one thing, fundamentals. Finishing all the challenges is great but it won’t teach you ABCs of security. If you really want to understand Web Application security I recommend Web Application Hackers Handbook. This books is the single best source of learning security for Web Applications.
Since this book only focuses on WebApplications, I would recommend Counter Hack Reloaded as a good counterpart. Its a bit dated (2006) but it goes in great details about fundamentals and covers a huge ground.
**List of sites similar to Hackthissite.org
This article is for the ones who aim to use c++ in topcoder or any where else. http://pocket.co/soi6f
long long is not the same as
long (although they can have the same size, e.g. in most 64-bit POSIX system). It is just guaranteed that a
long long is at least as long as a
long. In most platforms, a
long long represents a 64-bit signed integer type.
You could use
long long to store the 8-byte value safely in most conventional platforms, but it’s better to use
<cstdint> to clarify that you want an integer type having ≥64-bit.
Today it is the turn for the realistic mission 2 on hackthissite.org.
This mission is all about looking the home page source code. Finding the hidden link on page to directs you to admin page then use basic SQL injection to accomplish the mission.
SQL injection is about typing some malformed values to html forms to make some changes on the application database or get some data that the application owner does not expect us to see them or change. You can learn more about SQL injection from this link.
You need to be able to pass the mission after all the explanation and the reading from the above reference site. If you cannot, it means you need to work some more on hacking the sites. However for the lazy brains here I give the instructions as follows:
- Open the source file of the page.
- See the update.php link on the source. It is hidden on the visuals on the page.
- Find the hidden link and click on it to go to admin login page.
- Now use one of the tricks that you know about sql injection. I used this for both input x’ OR 1 = 1;
That’s all 🙂