码迷,mamicode.com
首页 > 其他好文 > 详细

How to code like a hacker

时间:2015-04-17 23:57:02      阅读:311      评论:0      收藏:0      [点我收藏+]

标签:windows   hacker   

We are coding. Are we engineers? Are we programmers? Are we coder? No, I want to be a hacker!

Many good hacker are working under Linux or Mac, I only have a Windows and do not intend to move to another hacker’s OS. So, how to code like a hacker with only Windows?

My answer is to code with the most simple tools. In the past time, we are pampered by Microsoft and their application. What we need now is to change our comfortable developing environment! Give up Visual Studio ! do everything starting from launching the command line prompt! Do not use your mouse as much as possible!

Now, Follow me and I am going to show you steps~


Staring CMD and Go!

By the way, even we want to work with the most simple tools, we still need them. Install compiler and notepad is required! If you have installed Visual Studo on your Windows, ignore this and go to launch your CMD!

Step 1 : Win + R

Step 2 : type %comspec% /k "X:\Your\VS\ROOT\VC\vcvarsall.bat" x86 in the edit box! Click Enter on your keyboard. A hacker’s tool is launching.

Step 3 : change your working path by X: and cd X:\your\working\path.

Step 4 : notepad hello.cpp

Step 5 : coding in the file you created just now. For instance:

#include <iostream>
int main(){
  std::cout << "hello u, I am a hacker!" << std::endl;
  return 0;
}

Step 6 : compile my source code, namely hello.cpp with cl hello.cpp or cl hello.cpp /EHsc

cl is the name of c++ compiler provided by Visual Studio~

Step 7 : run your first hacker app! hello, and you will get what you have output!


Note If you want to know more options about the command you are using, just type command /? where command means the name of your command you want to know more (e.g. cl /?, cd /?, etc.)


HaHa

Is that intereting? Do you want to have a try? if no~~ hehehehehe~~~ If Yes, Go Go Go Go for more!

How to code like a hacker

标签:windows   hacker   

原文地址:http://blog.csdn.net/bendanban/article/details/45102487

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!