zamanry / iker Goto Github PK
View Code? Open in Web Editor NEWAn ike-scan wrapper to simplify penetration testing IKE and encourage stronger IKE implementations.
License: GNU General Public License v3.0
An ike-scan wrapper to simplify penetration testing IKE and encourage stronger IKE implementations.
License: GNU General Public License v3.0
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.
[*] 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
The following new parameters should be considered:
XML does not show begin/end timestamps. Text does.
XAUTH groupname brute forcing
[============............] 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.
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%.
Input file requires dos2unix to be ran
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.
Use requirements.txt and virtual environments
IKEv1 is announced during the script when it is found. IKEv2 is not and should be
The previous writers did not comment enough of the code. More comments need to be added
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.