Skip to content

Commit f0a0fb9

Browse files
mszeuMarco Simone Zuppone
andauthored
Classy dev (#23)
* introduced class * return_code_tuple was not referenced before use in some circumstances. * code and docustring improvements. Destructor enhanced * Minor comments amendments * Update README.md * Update README.md * Minor amendments to arguments help * Minor amendments to arguments help * Minor amendments to arguments help --------- Co-authored-by: Marco Simone Zuppone <m.zuppone@computer.org>
1 parent d27af21 commit f0a0fb9

File tree

2 files changed

+231
-104
lines changed

2 files changed

+231
-104
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ The **pressureTest.py** Python script creates a workload on the **Thales payShie
66
The script can be useful during demonstrations of the monitoring features of the appliance and can be used in every case
77
you need to generate a workload for testing purposes.
88

9-
The project is in an early development stage and still a bit clumsy.
10-
11-
It requires **Python 3**. It was tested on **Python 3.7**, **3.8** and **3.9** using a **payShield 10k** with firmware **1.3d**
9+
It requires **Python 3**. It was tested on **Python 3.10.2*** using a **payShield 10k** with firmware **1.7**.
1210

1311
## Version
1412

15-
**1.2**
13+
**1.3**
1614

1715
## Usage
1816

@@ -29,15 +27,15 @@ It requires **Python 3**. It was tested on **Python 3.7**, **3.8** and **3.9** u
2927

3028
### Mutually exclusive parameters
3129

32-
**--key** the length of the RSA to generate. There value need to be between **320** and **4096**.
30+
**--key** the length in bits of the RSA keys to generate. The value needs to be between **320** and **4096**.
3331

3432
**--nc** performs just an **NC** test.
3533

3634
**--pci** gathers the PCI compliance status of the payShield through the **NO** command, type **01**.
3735

3836
**--no** gathers the status of the payShield through the **NO** command, type **00**.
3937

40-
**--ni** gathers the status of the Ethernet Host Port 1 through the **NI** command.
38+
**--ni** gathers the Ethernet Host Port 1 status through the **NI** command.
4139

4240
**--j2** gets HSM Loading using **J2** command.
4341

@@ -78,7 +76,7 @@ It's only considered if the protocol is **tls**.
7876

7977
**--forever** the test will run forever. Use **CTRL-C** to terminate it.
8078

81-
**--times** how many times execute the test. If it is not specified the default value is **1000** times.
79+
**--times** how many times execute the test. If it is not specified, the default value is **1000** times.
8280

8381
**--decode** decodes the response of the payShield if a decoder function is available for the command.
8482
The commands **--decode** supports in the release are: **B2**, **N0**, **NO**, **NC**, **J2**, **J4**, **J8**, **JK** and **FY (ECC)**.
@@ -105,7 +103,7 @@ The possible choices are:
105103

106104
C:\Test>python pressureTest.py 192.168.0.36 --nc --times 2
107105

108-
PayShield stress utility, version 1.2, by Marco S. Zuppone - msz@msz.eu - https://msz.eu
106+
PayShield stress utility, version 1.3, by Marco S. Zuppone - msz@msz.eu - https://msz.eu
109107
To get more info about the usage invoke it with the -h option This software is open source, and it is under the Affero
110108
AGPL 3.0 license
111109

@@ -134,7 +132,7 @@ The possible choices are:
134132
The **EI** command used to generate the RSA key requires authorization, and the generation of 4096-bit keys is possible only for keyblock LMKs.
135133

136134
The **--ecc** parameter uses the **FY** command to generate ECC keypairs:
137-
Depending on the firmware version the functionality may require a license and/or a firmware update.
135+
The functionality may require a license and/or a firmware update, depending on the firmware version.
138136

139137
## COPYRIGHT & LICENSE
140138
Please refer to the **LICENSE** file that is part of this project.

0 commit comments

Comments
 (0)