CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/metsvc/README.txt
Views: 11766
1
Meterpreter Service 1.0
2
3
by Alexander Sotirov <[email protected]>
4
5
6
This is a network service wrapper for the Meterpreter. It can be used as a
7
Windows service, or run as a command line application.
8
9
Compilation:
10
11
You'll need GNU make and Visual C++. Go to the src directory and run make.
12
13
Installation:
14
15
1. Copy metsvc.exe and metsvc-server.exe from the current directory to
16
the installation directory.
17
18
2. Copy metsrv.dll from Metasploit to the installation directory.
19
20
3. To register the Meterpreter as a windows service, go to the
21
installation directory and run:
22
23
metsvc.exe install-service
24
25
Running:
26
27
If you registered the the Meterpreter as a Windows service, it will start
28
automatically.
29
30
Otherwise, you have to start it manually by running metsvc.exe
31
32
33
Uninstallation:
34
35
If you registered the Meterpreter as a Windows service, you need to stop it
36
and remove the service by running:
37
38
metsvc.exe remove-service
39
40
Then simply delete all files.
41
42
Using:
43
44
Use test.rb to connect to the Meterpreter and run the sysinfo command:
45
46
$./test.rb 192.168.70.12 31337
47
48
* Initializing Meterpreter
49
* Loading Stdapi
50
* System info:
51
{"OS"=>"Windows XP (Build 2600, Service Pack 2).", "Computer"=>"VM-WINXPPRO"}
52
* Closing socket
53
54