GithubHelp home page GithubHelp logo

zamanry / iker Goto Github PK

View Code? Open in Web Editor NEW
25.0 1.0 7.0 41 KB

An ike-scan wrapper to simplify penetration testing IKE and encourage stronger IKE implementations.

License: GNU General Public License v3.0

Python 100.00%
ike python3 ike-scan penetration-testing ipsec

iker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

iker's Issues

Windows Support OS' geteuid

PS C:\Users\User\Downloads\iker> python .\iker.py
Traceback (most recent call last):
File "C:\Users\User\Downloads\iker\iker.py", line 35, in
from os import geteuid
ImportError: cannot import name 'geteuid' from 'os' (C:\Program Files\Python\lib\os.py)

Problem code:

from os import geteuid
...
def checkPrivileges():
	'''This method checks if the script was launched with root privileges.
	@return True if it was launched with root privs and False in other case.'''

	return geteuid() == 0

Occurred because geteuid only works on UNIX systems.

Text/console output should be a consecutive block of text and not have new lines

[*] Looking for accepted transforms at #.#.#.#
[*] Transform found: Enc=Blowfish Hash=MD5 Auth=PSK Group=1:modp768 LifeType=Seconds LifeDuration(4)=0x00007080

[*] Trying to fingerprint the devices (again). This process is going to take a while (1-5 minutes per IP). Be patient...
[*] Implementation guessed for IP #.#.#.#: Linux FreeS/WAN, OpenSwan, strongSwan

Progress bar shows algorithms and authentication method codes which do not exist

[============............] 95% - Current transform: 1,2,123,5
[==============.....] 96% - Current transform: 1,2,223,5
[==============.....] 97% - Current transform: 1,2,65005,5

Authentication method 123 and 223 do not exist and are not included in any lists. Appears to be string/integer manipulation which may be creating new numbers. This should increase the efficiency a lot.

Fix progress bar percentage not resetting between hosts in the same process

For example, let's say we are enumerating the main mode transforms for three hosts. The bug would appear as such:

[*] Looking for accepted transforms in main mode at #.#.#.#
[====================] 100% - Current transform: 6,2,64223,5
[*] Looking for accepted transforms in main mode at  #.#.#.#
[====================] 200% - Current transform: 6,2,64223,5
[*] Looking for accepted transforms in main mode at  #.#.#.#
[====================] 300% - Current transform: 6,2,64223,5

The percentage should never reach higher than 100% and reset to 0%.

Enumerate specific IKEv2 algorithms

IKEv1 and IKEv2 have similar algorithms they support, but are not identical. Scans for main mode IKEv1 and main mode IKEv2 should take place including in other features.

Comment code

The previous writers did not comment enough of the code. More comments need to be added

Report too long of session durations

IKE tunnels which use remote access should re-authenticate like every eight hours. Point-to-point tunnels are expected to re-authenticate a bit longer. Anything over a day is way too long.

If you can find a best practice, please comment below.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.