Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Suse 11 sp1 wireshark combined with vncserver to grab the package of the system

Shulou Source: shulou.com Published: 2022-06-01 05:04:33 10月03日 Update

Suse 11 sp1 wireshark combined with vncserver to grab the package of the system

1Percentsuse 11 sp1 install wireshark

# zypper insstall wireshark

# zypper se wireshark (check whether it is installed)

Loading repository data...

Reading installed packages...

S | Name | Summary | Type

-- +

I | wireshark | A Network Traffic Analyser | package

| | wireshark | A Network Traffic Analyser | srcpackage |

| | wireshark-devel | A Network Traffic Analyser | package |

2. Open the vnc service port

VNC remote Control under SUSE Linux system

After SSH logs in, execute the vncserver command

Hint: You will require a password to access your desktops.

Set the password for remote access.

Password: (enter password)

Verify: (enter again)

Hint: Would you like to enter a view-only password (yzone)? N (whether to enter a password that can only be viewed, choose No)

The prompts are as follows:

Xauth: creating new authority file / root/.Xauthority

New'X' desktop is linux-eyh7:1 (Desktop number 1)

Creating default startup script / root/.vnc/xstartup

Starting applications specified in / root/.vnc/xstartup

Log file is / root/.vnc/linux-eyh7:1.log

Configure the xstartup startup script. Launch the gnome graphical interface window

Edit / root/.vnc/xstartup script with VI

The contents are as follows:

#! / bin/sh

Xrdb $HOME/.Xresources

Xsetroot-solid grey

Xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &

Twm &

Change the last line to

Startgnome

DISPLAY=:1 gnome-session

To launch the gnome graphical interface window.

After saving, restart vnc.

How to restart the vncserver service:

[root@testdb ~ # cd / tmp

[root@testdb ~ # rm. X2-lock (delete lock file)

[root@testdb ~ # cd / tmp/.X11-unix

[root@testdb ~ # rm * (delete vnc process)

[root@testdb ~] # vncserver: 1

Download the windows vnc client software.

Run the VNC viewer and enter the IP and desktop number of the server:

For example, 10.60.30.112purl

Then enter the VNC connection password to log in.

Control through the browser:

If the main console does not have vnc viewer installed, it can also be controlled through the browser. For example, if the access address is http://10.60.30.112:5801/ (where the port number = desktop display number + 5800, and the previous configuration prompt that the desktop number is 1, so the port number is 5801), a login interface will appear.

You need a browser to open java applet.

3There is Wireshark to grab the system package.

# wireshark (execute the wireshark pop-up graphical interface to select the network card you want to grab the package)

4 the skill of using Wireshark expression-- IP filtering

(1) Source IP: (take 192.168.0.105 as an example of source IP, see figure 1.1)

Expression: ip.src==192.168.0.105, or ip.srceq192.168.0.105

Meaning: filter out packets whose source IP is 192.168.0.105.

(2) Target IP: (for example, IP for the purpose of 119.147.74.18, see figure 1.2)

Expression: ip.dst==119.147.74.18, or ip.dsteq119.147.74.18

Meaning: filter out the packet whose destination IP is 119.147.74.18.

(3) filter directly by IP: (take 202.105.182.132 as an example IP, see figure 1.3)

Expression: ip.addr==202.105.182.132, or ip.addreq202.105.182.132

Meaning: filter out the packets related to 202.105.182.132

Tags: Input password desktop interface expression prompt system meaning graphics data browser selection control service browsing login slogan that is target script Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Microsoft macOS Redmi Huawei