Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPN Redirecting to /ICS/scanPage from /Login/Login #24

Open
robertsmithforum opened this issue Mar 25, 2020 · 0 comments
Open

VPN Redirecting to /ICS/scanPage from /Login/Login #24

robertsmithforum opened this issue Mar 25, 2020 · 0 comments

Comments

@robertsmithforum
Copy link

The particular vpn I am connecting to is redirecting /Login/Login to /ICS/scanPage

The problem is:

snxconnect.py , Line 172 shows self.purl to be .../ICS/scanPage instead of /Login/Login.

This version of checkpoint is redirecting /Login/Login to /ICS/scanPage. So client does not have access to /Login/Login.

The code where it fails:

def login (self) :
if self.has_cookies :
self.debug ("has cookie")
self.nextfile = 'Portal/Main'
self.open ()
self.debug (self.purl)
if self.purl.endswith ('Portal/Main') :
self.open ('sslvpn/SNX/extender')
self.parse_extender ()
self.generate_snx_info ()
return True
else :
# Forget Cookies, otherwise we get a 400 bad request later
self.jar.clear ()
self.next_file (self.purl)
self.debug (self.nextfile)
self.open ()
self.debug (self.purl) <-- self.purl is .../ICS/scanPage instead of .../Login/Login.

The RSA javascript file can easily be obtained from the server. That is not a problem.

My question is, can a form be generated in snxconnect.py and submit the 'loginForm' data back to the server without having to have access to /Login/Login:

if 'id' in form.attrs and form ['id'] == 'loginForm' : <-- this is if you have access to /Login/Login

Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant