Skip to content

Commit

Permalink
docs: Fix a few typos
Browse files Browse the repository at this point in the history
There are small typos in:
- docs/diff.rst
- docs/index.rst
- docs/parser.rst
- libnmap/objects/os.py
- libnmap/objects/report.py
- libnmap/plugins/backendplugin.py
- libnmap/plugins/es.py
- libnmap/plugins/mongodb.py
- libnmap/plugins/sql.py
- libnmap/process.py

Fixes:
- Should read `retrieve` rather than `retreive`.
- Should read `instantiated` rather than `instanciated`.
- Should read `privileges` rather than `priviledges`.
- Should read `number` rather than `numer`.
- Should read `what` rather than `waht`.
- Should read `support` rather than `suport`.
- Should read `receive` rather than `reeive`.
  • Loading branch information
timgates42 authored and savon-noir committed Mar 21, 2022
1 parent 8f44274 commit 28060b4
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/diff.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 17,7 @@ Those methods return a python set() of keys which have been changed/added/remove
object to another.
The keys of each objects could be found in the implementation of the get_dict() methods of the compared objects.

The example below is a heavy version of going through all nested objects to see waht has changed after a diff::
The example below is a heavy version of going through all nested objects to see what has changed after a diff::

#!/usr/bin/env python
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 21,7 @@ libnmap is a python toolkit for manipulating nmap. It currently offers the follo
- plugins: enables you to support datastores for your scan results directly in the "NmapReport" object from report module

- mongodb: only plugin implemented so far, ultra basic, for POC purpose only
- sqlalchemy: Allow to store/retreive NmapReport to sqlite/mysql/... all engine supported by sqlalchemy
- sqlalchemy: Allow to store/retrieve NmapReport to sqlite/mysql/... all engine supported by sqlalchemy
- rabbitMQ : todo
- couchdb: todo
- elastic search: todo
Expand Down
2 changes: 1 addition & 1 deletion docs/parser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 63,7 @@ Using libnmap.parser module

NmapParser parse the whole data and returns nmap objects usable via their documented API.

The NmapParser should never be instanciated and only the following methods should be called:
The NmapParser should never be instantiated and only the following methods should be called:

- NmapParser.parse(string)
- NmapParser.parse_fromfile(file_path)
Expand Down
2 changes: 1 addition & 1 deletion libnmap/objects/os.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 269,7 @@ def __repr__(self):
class NmapOSFingerprint(object):
"""
NmapOSFingerprint is a easier API for using os fingerprinting.
Data for OS fingerprint (<os> tag) is instanciated from
Data for OS fingerprint (<os> tag) is instantiated from
a NmapOSFingerprint which is accessible in NmapHost via NmapHost.os
"""

Expand Down
4 changes: 2 additions & 2 deletions libnmap/objects/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 254,7 @@ def elapsed(self):
@property
def hosts_up(self):
"""
Accessor returning the numer of host detected
Accessor returning the number of host detected
as 'up' during the scan.
:return: integer (0 >= or -1)
Expand All @@ -270,7 270,7 @@ def hosts_up(self):
@property
def hosts_down(self):
"""
Accessor returning the numer of host detected
Accessor returning the number of host detected
as 'down' during the scan.
:return: integer (0 >= or -1)
Expand Down
2 changes: 1 addition & 1 deletion libnmap/plugins/backendplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 30,7 @@ def delete(self, id):

def get(self, id):
"""
retreive a NmapReport from the backend
retrieve a NmapReport from the backend
:param id: str
:return: NmapReport
"""
Expand Down
2 changes: 1 addition & 1 deletion libnmap/plugins/es.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 48,7 @@ def delete(self, id):

def get(self, id):
"""
retreive a NmapReport from the backend
retrieve a NmapReport from the backend
:param id: str
:return: NmapReport
"""
Expand Down
2 changes: 1 addition & 1 deletion libnmap/plugins/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 15,7 @@ class NmapMongodbPlugin(NmapBackendPlugin):
Implementation is made using pymongo
Object of this class must be create via the
BackendPluginFactory.create(**url) where url is a named dict like
{'plugin_name': "mongodb"} this dict may reeive all the param
{'plugin_name': "mongodb"} this dict may receive all the param
MongoClient() support
"""

Expand Down
4 changes: 2 additions & 2 deletions libnmap/plugins/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 77,7 @@ def __init__(self, **kwargs):
- create all the necessary obj to discuss with the DB
- create all the mapping(ORM)
todo : suport the : sqlalchemy.engine_from_config
todo : support the : sqlalchemy.engine_from_config
:param **kwargs:
:raises: ValueError if no url is given,
Expand Down Expand Up @@ -121,7 121,7 @@ def insert(self, nmap_report):

def get(self, report_id=None):
"""
retreive a NmapReport from the backend
retrieve a NmapReport from the backend
:param id: str
Expand Down
6 changes: 3 additions & 3 deletions libnmap/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 22,7 @@ class NmapTask(object):

"""
NmapTask is a internal class used by process. Each time nmap
starts a new task during the scan, a new class will be instanciated.
starts a new task during the scan, a new class will be instantiated.
Classes examples are: "Ping Scan", "NSE script", "DNS Resolve",..
To each class an estimated time to complete is assigned and updated
at least every second within the NmapProcess.
Expand Down Expand Up @@ -215,7 215,7 @@ def _ensure_user_exists(self, username=""):
def sudo_run(self, run_as="root"):
"""
Public method enabling the library's user to run the scan with
priviledges via sudo. The sudo configuration should be set manually
privileges via sudo. The sudo configuration should be set manually
on the local system otherwise sudo will prompt for a password.
This method alters the command line by prefixing the sudo command to
nmap and will then call self.run()
Expand Down Expand Up @@ -245,7 245,7 @@ def sudo_run(self, run_as="root"):
def sudo_run_background(self, run_as="root"):
"""
Public method enabling the library's user to run in background a
nmap scan with priviledges via sudo.
nmap scan with privileges via sudo.
The sudo configuration should be set manually on the local system
otherwise sudo will prompt for a password.
This method alters the command line by prefixing the sudo command to
Expand Down

0 comments on commit 28060b4

Please sign in to comment.