forked from decalage2/oletools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL.txt
130 lines (87 loc) · 3.83 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
How to Download and Install oletools
====================================
Pre-requisites
--------------
The recommended Python version to run oletools is the latest **Python 3.x** (3.7 for now).
Python 2.7 is still supported, but as it will become end of life in 2020 (see https://pythonclock.org/), it is highly
recommended to switch to Python 3 now.
Recommended way to Download+Install/Update oletools: pip
--------------------------------------------------------
Pip is included with Python since version 2.7.9 and 3.4. If it is not installed on your
system, either upgrade Python or see https://pip.pypa.io/en/stable/installing/
### Linux, Mac OSX, Unix
To download and install/update the latest release version of oletools,
run the following command in a shell:
```text
sudo -H pip install -U oletools
```
Replace `pip` by `pip3` or `pip2` to install on a specific Python version.
**Important**: Since version 0.50, pip will automatically create convenient command-line scripts
in /usr/local/bin to run all the oletools from any directory.
### Windows
To download and install/update the latest release version of oletools,
run the following command in a cmd window:
```text
pip install -U oletools
```
Replace `pip` by `pip3` or `pip2` to install on a specific Python version.
**Note**: with Python 3, you may need to open a cmd window with Administrator privileges in order to run pip
and install for all users. If that is not possible, you may also install only for the current user
by adding the `--user` option:
```text
pip3 install -U --user oletools
```
**Important**: Since version 0.50, pip will automatically create convenient command-line scripts
to run all the oletools from any directory: olevba, mraptor, oleid, rtfobj, etc.
How to install the latest development version
---------------------------------------------
If you want to benefit from the latest improvements in the development version,
you may also use pip:
### Linux, Mac OSX, Unix
```text
sudo -H pip install -U https://github.com/decalage2/oletools/archive/master.zip
```
Replace `pip` by `pip3` or `pip2` to install on a specific Python version.
### Windows
```text
pip install -U https://github.com/decalage2/oletools/archive/master.zip
```
Replace `pip` by `pip3` or `pip2` to install on a specific Python version.
**Note**: with Python 3, you may need to open a cmd window with Administrator privileges in order to run pip
and install for all users. If that is not possible, you may also install only for the current user
by adding the `--user` option:
```text
pip3 install -U --user https://github.com/decalage2/oletools/archive/master.zip
```
How to install offline - Computer without Internet access
---------------------------------------------------------
First, download the oletools archive on a computer with Internet access:
* Latest stable version: from https://pypi.org/project/oletools/ or https://github.com/decalage2/oletools/releases
* Development version: https://github.com/decalage2/oletools/archive/master.zip
Copy the archive file to the target computer.
On Linux, Mac OSX, Unix, run the following command using the filename of the
archive that you downloaded:
```text
sudo -H pip install -U oletools.zip
```
On Windows:
```text
pip install -U oletools.zip
```
Old school install using setup.py
---------------------------------
If you cannot use pip, it is still possible to run the setup.py script
directly. However, this method will not create the command-line scripts
automatically.
First, download the oletools archive:
* Latest stable version: from https://github.com/decalage2/oletools/releases
* Development version: https://github.com/decalage2/oletools/archive/master.zip
Then extract the archive, open a shell and go to the oletools directory.
### Linux, Mac OSX, Unix
```text
sudo -H python setup.py install
```
### Windows:
```text
python setup.py install
```