Network security|Penetration testing entry learning, from zero-based entry to mastery-development language in penetration

Table of contents

previous words

Development language

1、html

analyze

2、JavaScript

usage

3、JAVA

  characteristic

4、PHP

effect

What can PHP do?

5、C/C++

use

how to study


previous words

Regarding the language that needs to be learned during infiltration, the first point I personally think is that you can type the basic knowledge of HTML and JS, and sharpen your knife without cutting firewood. Secondly, after understanding the basic code, you can learn related vulnerability knowledge, nothing more than JAVA, PHP, Python, etc., understand their principles, learn how to use them, and know their defenses.

 Here today I mainly explain some infiltration development languages.

Development language

1、html

Hypertext Markup Language (English: HyperText Markup Language, referred to as: HTML) is a standard markup language used to create web pages. You can use HTML to build your own WEB site. HTML runs on the browser and is parsed by the browser. It is the foundation is the cornerstone.

Code display:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>学习渗透-Html语言</title>
</head>
<body>

<h1>学习渗透-Html语言</h1>
<p>学习渗透-Html语言</p>

</body>
</html>

The output is as follows: 

analyze

  • <!DOCTYPE html>  is declared as an HTML5 document
  • The <html>  element is the root element of an HTML page
  • The <head>  element contains the meta data of the document, such as <meta charset="utf-8"> defines the encoding format of the web page as  utf-8 .
  • The <title>  element describes the title of the document
  • The <body>  element contains the visible page content
  • The <h1>  element defines a large heading
  • The <p>  element defines a paragraph

Note: On the browser page, use the F12 key on the keyboard to open the debug mode, and you can see the component tags.

2、JavaScript

JavaScript is the programming language of the Web. All modern HTML pages can use JavaScript. Note: (mastering this language can better understand xss cross-site scripting attacks)

Code display:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>学习渗透—js代码</title>
<script>
function displayDate(){
	document.getElementById("demo").innerHTML=Date();
}
</script>
</head>
<body>

<h1>学习渗透—js代码</h1>
<p id="demo">学习渗透—js代码</p>

<button type="button" onclick="displayDate()">显示日期</button>

</body>
</html>

operation result: 

usage

Javascript script code in HTML must be placed between <script> and </script> tags.

Javascript script code can be placed in the <body> and <head> sections of HTML pages.

3、JAVA

A cross-platform language, no matter which system it is in, only needs one environment, and there are many things involved in the web field. Many large enterprises use JAVA to develop Web. And our infiltration artifact burp and so on are all developed by JAVA.

Code display:

public class HelloWorld {
    public static void main(String []args) {
       System.out.println("Hello World");
    }
}

operation result: 

4、PHP

PHP is a powerful server-side scripting language for creating dynamic and interactive sites. Cross-platform language, write and use, no need to compile. Contemporary mainstream Web programs.

Code display:

<!DOCTYPE html> 
<html> 
<body> 

<?php 
echo "Hello World!"; 
?> 

</body> 
</html>

 operation result:

5、C/C++

It is recognized that the language that will never decline, how should I put it, this must be learned, and there are only benefits and no harm to learning it. A large part of the Windows operating system is implemented in C. C++ further expands and perfects the C language and is an object-oriented programming language. C++ can run on various platforms, such as Windows, MAC operating system and various versions of UNIX.

Code display:

#include <iostream>
using namespace std;
int main()
{
    cout << "Hello, world!" << endl;
    return 0;
}

operation result:

use

C++ fully supports object-oriented programming, including four major features of object-oriented development:

  • Encapsulation : Encapsulation combines data and methods, hides implementation details from the outside, and only exposes externally provided interfaces. This increases security, reliability and flexibility.

  • Inheritance (Inheritance) : Inheritance is to derive a new class from an existing class. The new class has the properties and methods of the existing class, and can extend or modify these properties and methods. This improves code reusability and scalability.

  • Polymorphism (Polymorphism) : Polymorphism means that the same operation acts on different objects, and can have different interpretations and implementations. It can be implemented through interfaces or inheritance, which can improve code flexibility and readability.

  • Abstraction : Abstraction is to extract common features from specific instances to form abstract classes or interfaces for easy code reuse and expansion. Abstract classes and interfaces allow programmers to focus on high-level design and business logic without having to worry about low-level implementation details.

how to study

1. HTML. The syntax of html is really simple, you only need to learn the head tag, tail tag (closed), and empty tag. And some calls, parameter settings, and simple labels. There are a lot of free tutorials in Baidu search html tutorial. This is a foundation and cornerstone, and I suggest that everyone study hard.

2. You can learn JavaScript from here http://www.w3school.com.cn/js/index.asp The w3school series is pretty good. It is easy to learn JS and various WEB script penetration. The learning of JS must be stable and reliable.

3. C language: If you have seen html, then you will have a certain way of thinking when learning this. The editor used to learn it on: MOOC (Baidu search), which is simple and easy to understand.

4. There are also some commonly used DOS commands that must be learned, such as net user and so on

5. JAVA does not need to be studied too deeply, but! It is necessary to understand its framework structure and the construction of the environment (there are many places to be used later)

Guess you like

Origin blog.csdn.net/qq_22903531/article/details/131223979