Projects STRLCPY routeros-scanner Commits dd4f962b
🤬
  • Priavte/noa/pr/19/updates (#27)

    * some changes
    
    add close ssh client (main.py)
    change ssh port required to default ssh port 22 (main.py)
    change The Mikrotik version to RouterOS version (version.py)
    add example default port ssh (README.md)
    change ip 1.2.3.4 to default mikrotik ip 192.168.88.1 in executing examples (README.md)
    change The tested Mikrotik SSH port of Must to Optional in the arguments (README.md)
    tested in RouterOS v6.49.5 (stable) and v7.1.3 (stable)
    
    * Squashed commit of the following:
    
    commit df8148b6a56412b2f160035f82a6a768549a43e2
    Author: noafru <[email protected]>
    Date:   Tue Mar 29 13:33:26 2022 +0300
    
        Priavte/noa/pr/8/updates (#26)
    
        * Slight optimization when getting version, add concise argument - prints only suspicious and recommended items
    
        * Update README
    
        * pr8 branch with some changes
    
        * merge with main
    
        Co-authored-by: Iavor Todorov <[email protected]>
    
    commit 61559dd36b79d72e105e6f7328ffc74bdb1ab22a
    Author: noafru <[email protected]>
    Date:   Tue Mar 29 11:41:56 2022 +0300
    
        update note
    
    commit 83e0ae931e346d72560157593143162532f7fc8e
    Merge: 9ef15fc 055b9f1
    Author: noafru <[email protected]>
    Date:   Mon Mar 28 15:04:24 2022 +0300
    
        Merge pull request #6 from jithinsarath/main
    
        Update README.md for typos
    
    commit 9ef15fc0e522724e26123d69cab3219294656512
    Merge: 9a834d3 cea9232
    Author: noafru <[email protected]>
    Date:   Mon Mar 28 14:39:36 2022 +0300
    
        Merge pull request #24 from microsoft/private/noa/ttl&exceptions
    
        fix ttl, fix paramiko params and add try-except
    
    commit cea923263d3dcfd664a9db5a8b0b8ef379a44c3a
    Author: noafru <[email protected]>
    Date:   Mon Mar 28 14:38:39 2022 +0300
    
        fix ttl, fix paramiko params and add try-except
    
    commit 055b9f1237ec14f190866e5b4f8574f21d90887d
    Author: jithinsarath <[email protected]>
    Date:   Fri Mar 18 00:00:02 2022 +0530
    
        Update README.md for typos
    
        The commit fixes typos in the readme.md file
    
    * Squashed commit of the following:
    
    commit 81e72a036cd092d0bb510f312d71ef1824482e3e
    Author: noafru <[email protected]>
    Date:   Tue Mar 29 16:09:46 2022 +0300
    
        Update README.md
    
    commit 5af831b9b2a7e6fa19adcc588c95ae8b43adf0ed
    Author: noafru <[email protected]>
    Date:   Tue Mar 29 16:09:04 2022 +0300
    
        Update README.md
    
    commit df8148b6a56412b2f160035f82a6a768549a43e2
    Author: noafru <[email protected]>
    Date:   Tue Mar 29 13:33:26 2022 +0300
    
        Priavte/noa/pr/8/updates (#26)
    
        * Slight optimization when getting version, add concise argument - prints only suspicious and recommended items
    
        * Update README
    
        * pr8 branch with some changes
    
        * merge with main
    
        Co-authored-by: Iavor Todorov <[email protected]>
    
    commit 61559dd36b79d72e105e6f7328ffc74bdb1ab22a
    Author: noafru <[email protected]>
    Date:   Tue Mar 29 11:41:56 2022 +0300
    
        update note
    
    commit 83e0ae931e346d72560157593143162532f7fc8e
    Merge: 9ef15fc 055b9f1
    Author: noafru <[email protected]>
    Date:   Mon Mar 28 15:04:24 2022 +0300
    
        Merge pull request #6 from jithinsarath/main
    
        Update README.md for typos
    
    commit 9ef15fc0e522724e26123d69cab3219294656512
    Merge: 9a834d3 cea9232
    Author: noafru <[email protected]>
    Date:   Mon Mar 28 14:39:36 2022 +0300
    
        Merge pull request #24 from microsoft/private/noa/ttl&exceptions
    
        fix ttl, fix paramiko params and add try-except
    
    commit cea923263d3dcfd664a9db5a8b0b8ef379a44c3a
    Author: noafru <[email protected]>
    Date:   Mon Mar 28 14:38:39 2022 +0300
    
        fix ttl, fix paramiko params and add try-except
    
    commit 055b9f1237ec14f190866e5b4f8574f21d90887d
    Author: jithinsarath <[email protected]>
    Date:   Fri Mar 18 00:00:02 2022 +0530
    
        Update README.md for typos
    
        The commit fixes typos in the readme.md file
    
    Co-authored-by: Daniel HybridNetworks <[email protected]>
  • Loading...
  • noafru committed with GitHub 2 years ago
    dd4f962b
    1 parent 81e72a03
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    README.md
    skipped 19 lines
    20 20  `pip install -r requirements.txt`
    21 21  
    22 22  ### The arguments:
    23  - **args** | **Description** | **Must / Optional**
    24  -----------| ------------------------------------------------------------------------------| -------------------
    25  -`-i` | The tested Mikrotik IP address | Must
    26  -`-p` | The tested Mikrotik SSH port | Must
    27  -`-u` | User name with admin Permissions | Must
    28  -`-ps` | The password of the given user name (empty password by default) | Optional
    29  -`-J` | Print the results as json format (prints txt format by default) | Optional
    30  -`-concise`| Print a shortened text output focusing on recommendations and suspicious data | Optional
     23 + **args** | **Description** | **Must / Optional**
     24 +-----------| ------------------------------------------------------------------------------| -------------------
     25 +`-i` | The tested Mikrotik IP address | Must
     26 +`-p` | The tested Mikrotik SSH port | Optional
     27 +`-u` | User name with admin Permissions | Must
     28 +`-ps` | The password of the given user name (empty password by default) | Optional
     29 +`-J` | Print the results as json format (prints txt format by default) | Optional
     30 +`-concise` | Print a shortened text output focusing on recommendations and suspicious data | Optional
    31 31   
    32 32  ### Executing examples:
    33  - ./main.py -i 1.2.3.4 -p 22 -u admin
    34  - ./main.py -i 1.2.3.4 -p 2000 -u admin -ps 123456
    35  - ./main.py -i 1.2.3.4 -p 2000 -u admin -ps 123456 -J
     33 + ./main.py -i 192.168.88.1 -u admin
     34 + ./main.py -i 192.168.88.1 -p 22 -u admin
     35 + ./main.py -i 192.168.88.1 -p 2000 -u admin -ps 123456
     36 + ./main.py -i 192.168.88.1 -p 2000 -u admin -ps 123456 -J
    36 37   
    37 38  ### Output:
    38 39  The output includes 3 sections for each test:
    39 40  1. raw data - all the data we search in.
    40 41  2. suspicious - things we found out as suspicious - should be checked if they are legitimate or malicious.
    41 42  3. recommendation - things we found out as weak security points and recommendations for fixing them.
    42  - 
    43 43   
    44 44  ## Contributing
    45 45   
    skipped 20 lines
  • ■ ■ ■ ■
    main.py
    skipped 55 lines
    56 56  if __name__ == '__main__':
    57 57   parser = argparse.ArgumentParser()
    58 58   parser.add_argument('-i', '--ip', help='The tested Mikrotik IP address', required=True)
    59  - parser.add_argument('-p', '--port', help='The tested Mikrotik SSH port', required=True)
     59 + parser.add_argument('-p', '--port', help='The tested Mikrotik SSH port', default='22')
    60 60   parser.add_argument('-u', '--userName', help='User name with admin Permissions', required=True)
    61 61   parser.add_argument('-ps', '--password', help='The password of the given user name', default='')
    62 62   parser.add_argument('-J', help='Print the results as json format', action='store_true')
    skipped 5 lines
Please wait...
Page is in error, reload to recover