check network problems
2. Software Test engineers use Wireshark to grasp the package to analyze their own test software
3. The engineer who engages in socket programming will use Wireshark to debug
4. It is said that Huawei, ZTE's most engineers will use the Wireshark.
In short, the network-related things may be used to Wireshark. Wireshark started grabbing the bag .
Start interface
Wireshark is a network packet that captures a certain NIC on the m
Wireshark Grab Bag analysis
Wireshark is a very popular network packet analysis software, the function is very powerful. You can crawl various network packets and display the details of the network packets. Start Interface
Wireshark is a network packet that captures a NIC on a machine, and when you have multiple NICs on your machine, you need to select a NIC.
Click Caputre->interfaces. The following dialog box appears and selects the correct network c
to carry out the bag operation, if it is windows or Ubuntu can choose some graphical tools, Ubuntu comparison recommended using Wireshark, Installation method is very simple sudo apt can.
command-line format:
tcpdump [-ADEFLNNOPQSTVX] [-C Quantity] [-f filename] [-I network interface] [-r FileName] [-s snaplen] [-t-type] [-w filename] [expression]
Common parameters:
-L changes the standard output to a buffer row form;-N does not convert the network a
Tags: Linux under Grab Bag#yum install-y tcpdump//Installation tcpdump#tcpdump-nn//-nn The first n is displayed numerically, and if you do not add N, the host name is displayed, plus two n will display the IP address and port number in a digital way#tcpdump-nn-i ens33//Specify ENS33 NICDDoS attack UDP flood is a flood attack of UDP, DDoS maximum attack amount of more than 300 g#tcpdump-NN Port 80//ports specified#tcpdump-nn not port and host 192.168.0
use the blue and white porcelain Charles to crawl network requests on the phone:first step, download and install and open CharlesStep Two,RemoveMenu "Proxy" below the "Mac OSX Proxy"and"Mozilla Firefox Proxy"The "tick" in frontThe third step, let the phone and the computer in the same local area network (together with a WiFi)Fourth Step, open the phone's settings (Setting), select (Wireless LAN), click on the connected network, swipe to the bottom of the "HTTP proxy", select the middleManual,Ent
First, through the tcpdump grab bagIntroduction to the Android platform as an example tcpdump grab bag1. Download Tcpdump First2. Push the tcpdump to the phoneADB push tcpdump/data/local3. Modify Tcpdump PermissionsADB Shellchmod 777/data/local/tcpdump4. Grab the packet directly from the ADB shellCd/data/local./tcpdump-s -0-w/sdcard/tcpdump5. Operation Phone , shortcut key CTRL + C can stop the package, will tcpdump open with Wireshark, analysisSecond, the computer to do Wi-Fi hotspot, mobile p
Launch simulatorsetting---wirelessnetworks----mobile networks----access pointNames--------------------Then create a new access pointMenu---new APNModify according to the parameters in the picture (theName property can be customized)and then saveMenu--SaveNow you can crawl to the emulator's packet through the Fiddler ~PS, parameter descriptionFiddler listens on a port of 8888, so this value is filled in here. If you use a different grab tool, the corresponding port value will be changed.The emula
(1) Copy the Android tcpdump command to the/data/local/tools/directory and add the executable permission(2) Create a new adbtcpdump.sh file on your local computer with the following contents:
#!/bin/bash
Filename= ' Date +%f-%h-%m-%s ' ". Cap"
Filepath= "/data/local/tmp"
Pullfile ()
{
# echo $filepath/$filename
adb shell "Su-c ' chmod 777 $filepath/$filename '"
ADB pull $filepath/$filename
adb shell "su-c ' rm-f $filepath/$filename '"
}
#trap
allowed to act as a network request agent for the phone, select Allow, and then, on the phone, the network request, on Charles can see theHTTPS Grab BagOn the computer to grab packets of HTTPS, such as Baidu, the first is to install Charles Root certificate, Help-ssl proxying-install Charles Root Certificate, will open the key application, installed inWhen installed, you may not see where, in the top right-hand corner of the search to enter Cha will be displayed, you see above is this root cert
Premise:PC if the desktop needs to plug in the wireless network cardPC and phone need to connect to the same WiFiPC-side configuration:Connect to WiFiInstalling Fiddler,tools->fiddler options...->connections->Fiddler Listen on port:8888Allow remote computers to connect front hookClick OK.Mobile-side configuration:Along with a WiFi, long press wifi-> Modify network, show advanced options, agent settings, manualProxy hostname: Fill in the IP of the PC (if you do not know it can be ipconfig/all wit
/001.pcap;
On the Android phone to do related operations, generate communication packets, the communication behavior after the completion of the command Prompt window with the Ctrl + C key combination to exit the current shell to stop grasping the package.
In the above procedure ,theparameters of the tcpdump command have the following meanings:# "-P": Disable promiscuous mode (does not use promiscuous mode)# "-S 0": Capture the entire packet (-s parameter to specify the packet capture l
)
Replaces the character in the character sequence N of the current StringBuffer object with the character specified by the parameter ch, and the value of n must be non-negative and less than the length of the string sequence in the current object.
Reverse ()
Use the reverse () method to flip a sequence of characters in an object.
Delete (int n, int m)
Deletes a sequence of substrings from a sequence of characters in the current StringBuffer object. H
This is a creation in
Article, where the information may have evolved or changed.
Reflect Bag
The Reflect Reflex Pack has 2 important types, which are passed Typeof() and ValueOf() returned respectively. Separately in the package of the source code package reflect type.go andvalue.go
Type
TypeOf () returns an Type interface type, in the source code
type Type interface {Align() intFieldAlign() intMethod(int) MethodMethodByName(string) (Method, bool)Num
This is a creation in
Article, where the information may have evolved or changed.
2. Toad Notes Go language--bag
Each Go program is made up of packages.
The entry that runs the program is the package main.
This program uses and imports the package "FMT" and "Math/rand".
By convention, the package name is consistent with the last directory of the import path. For example, the "Math/rand" package is started by the Packages Rand statement
Code
Package M
This is a creation in
Article, where the information may have evolved or changed.
2. Toad Notes Go language--bag
Each Go program is made up of packages.
The entry that runs the program is the package main.
This program uses and imports the package "FMT" and "Math/rand".
By convention, the package name is consistent with the last directory of the import path. For example, the "Math/rand" package is started by the Packages Rand statement
Code
Package M
This is a creation in
Article, where the information may have evolved or changed.
2. Toad Notes Go language--bag
Each Go program is made up of packages.
The entry that runs the program is the package main.
This program uses and imports the package "FMT" and "Math/rand".
By convention, the package name is consistent with the last directory of the import path. For example, the "Math/rand" package is started by the Packages Rand statement
Code
Package M
project's structure mapThe complete build.xml is posted belowThe war package can be successfully generated, placed under Tomcat's WebApps, and rebooting Tomcat will compile the entire compiled code of the project correctly.In the ointment, Build.xml did not configure the copy configuration file, you need to manually copy the configuration file to the appropriate location.ok~ the whole ant basic situation is like this. Copyright NOTICE: This article for Bo Master original article, without Bo Mas
(1) {cin>>W>>i; if(w==0and h==0) Break; if(W > H) {//make the number of columns as small as possible to optimize efficiency because W is going to be exponential intT t = W; W = H; H =T; } //if it is an odd number of direct output 0 then determine the next state if(W*h%2==1) {cout0Endl; Continue; } //Empty ArrayMemset (DP,0,sizeof(DP)); CNT=1;//Reset to 1Build_line (1,0,0);//build the first row//enumerates all the states of the previous
This is a creation in
Article, where the information may have evolved or changed.
By the pit of the pieces, hereby commemorate, not novice don't look
Package structure
Next we're going to call the methods in Myprint2.go in Main.go.
Myprint2.go
Package Testimport "FMT" func MyPrint2 () {fmt. PRINTLN ("This message comes from Myprint2")}
Myprint.go
Package Testimport "FMT" func Myprint () {fmt. PRINTLN ("This message comes from Myprint")}
Main.go
Package Mainimport ("Try2/test") func main () {t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.