Giter VIP home page Giter VIP logo

cpfw-login's Introduction

Checkpoint Firewall Login

Command line agent for checkpoint firewall authentication

Install

Download the latest release. Make sure to pick the right OS.

Usage

Run the agent on your command line like this:

./cpfw-login --url <cp fw url> --user <username> --password <password> [--passwordprompt]

The following parameters are available:

  • --url // CPFW_AUTH_URL required: base url of your checkpoint firewall login form without '/PortalMain'
  • --user // CPFW_AUTH_USER required: your user name
  • --password // CPFW_AUTH_PASSWORD required: your password
  • --check // CPFW_AUTH_CHECK_URL optional: any http url, used for checking before and after login. should be behind your firewall.
  • --interval optional: recheck/relogin every X seconds
  • --insecure optional: don't verify SSL/TLS connections
  • --passwordprompt optional: show a prompt for the password. It ignores the password parameter.

Build

make

Test

make test

Contributing

  1. fork
  2. commit
  3. send PR

cpfw-login's People

Contributors

felixb avatar felixbechstein0000 avatar joschaharpeng1337 avatar kevcodez avatar marcohutzsch1234 avatar mknudsen avatar

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  avatar  avatar  avatar  avatar

cpfw-login's Issues

does not build on Mojave with go 1.12.2

I am not able to build the current head or the last release:

$make
GOOS=linux GOARCH=amd64 go build -o cpfw-login_amd64 .
# _/Users/martin/workspace/cpfw-login
./http.go:21:102: cannot use "password" (type string) as type http.SameSite in field value
./http.go:21:122: cannot use []string literal (type []string) as type string in field value
./http.go:21:122: too few values in &http.Cookie literal
./http.go:22:94: cannot use "password" (type string) as type http.SameSite in field value
./http.go:22:114: cannot use []string literal (type []string) as type string in field value
./http.go:22:114: too few values in &http.Cookie literal
make: *** [cpfw-login_amd64] Error 2
$make cpfw-login_darwin
GOOS=darwin go build -o cpfw-login_darwin .
# _/Users/martin/workspace/cpfw-login
./http.go:21:102: cannot use "password" (type string) as type http.SameSite in field value
./http.go:21:122: cannot use []string literal (type []string) as type string in field value
./http.go:21:122: too few values in &http.Cookie literal
./http.go:22:94: cannot use "password" (type string) as type http.SameSite in field value
./http.go:22:114: cannot use []string literal (type []string) as type string in field value
./http.go:22:114: too few values in &http.Cookie literal
make: *** [cpfw-login_darwin] Error 2

With go version go1.12.2 darwin/amd64

Current cfp-login_darwin binary breaks on OSX High Sierra

While executing the v0.2 cfp-login_darwin on OSX High Sierra it breaks with the error below. Checking out the source and building with

go version
go version go1.9.2 darwin/amd64

fixes the problem. Can you please update the binary for OSX?

failed MSpanList_Insert 0x1812000 0x43e7c578d9c 0x0
 fatal error: MSpanList_Insert

 runtime stack:
 runtime.throw(0x4311eb)
   /usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7ffeefbff2b0 sp=0x7ffeefbff280
 runtime.MSpanList_Insert(0x4570e8, 0x1812000)
   /usr/local/go/src/runtime/mheap.c:692 +0x8f fp=0x7ffeefbff2d8 sp=0x7ffeefbff2b0
 MHeap_FreeSpanLocked(0x453ce0, 0x1812000, 0x100)
   /usr/local/go/src/runtime/mheap.c:583 +0x163 fp=0x7ffeefbff318 sp=0x7ffeefbff2d8
 MHeap_Grow(0x453ce0, 0x8, 0x0)
   /usr/local/go/src/runtime/mheap.c:420 +0x1a8 fp=0x7ffeefbff358 sp=0x7ffeefbff318
 MHeap_AllocSpanLocked(0x453ce0, 0x1, 0x0)
   /usr/local/go/src/runtime/mheap.c:298 +0x365 fp=0x7ffeefbff398 sp=0x7ffeefbff358
 mheap_alloc(0x453ce0, 0x1, 0x12, 0x0)
   /usr/local/go/src/runtime/mheap.c:190 +0x121 fp=0x7ffeefbff3c0 sp=0x7ffeefbff398
 runtime.MHeap_Alloc(0x453ce0, 0x1, 0x10000000012, 0x12349)
   /usr/local/go/src/runtime/mheap.c:240 +0x66 fp=0x7ffeefbff3f8 sp=0x7ffeefbff3c0
 MCentral_Grow(0x45ba58, 0x0)
   /usr/local/go/src/runtime/mcentral.c:197 +0x8b fp=0x7ffeefbff460 sp=0x7ffeefbff3f8
 runtime.MCentral_CacheSpan(0x45ba58, 0x0)
   /usr/local/go/src/runtime/mcentral.c:85 +0x167 fp=0x7ffeefbff498 sp=0x7ffeefbff460
 runtime.MCache_Refill(0x180e000, 0x12, 0x0)
   /usr/local/go/src/runtime/mcache.c:90 +0xa0 fp=0x7ffeefbff4c0 sp=0x7ffeefbff498
 runtime.mcacheRefill_m()
   /usr/local/go/src/runtime/malloc.c:368 +0x57 fp=0x7ffeefbff4e0 sp=0x7ffeefbff4c0
 runtime.onM(0x3638a8)
   /usr/local/go/src/runtime/asm_amd64.s:273 +0x9a fp=0x7ffeefbff4e8 sp=0x7ffeefbff4e0
 runtime.mallocgc(0x120, 0x2cc6a0, 0x0, 0x0)
   /usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0x7ffeefbff598 sp=0x7ffeefbff4e8
 runtime.newobject(0x2cc6a0, 0x180e000)
   /usr/local/go/src/runtime/malloc.go:353 +0x49 fp=0x7ffeefbff5c0 sp=0x7ffeefbff598
 runtime.newG(0x2e26a)
   /usr/local/go/src/runtime/proc.go:233 +0x2a fp=0x7ffeefbff5d8 sp=0x7ffeefbff5c0
 allocg(0x444800)
   /usr/local/go/src/runtime/proc.c:925 +0x1f fp=0x7ffeefbff5e8 sp=0x7ffeefbff5d8
 runtime.malg(0x8000, 0x4449c0)
   /usr/local/go/src/runtime/proc.c:2106 +0x1f fp=0x7ffeefbff618 sp=0x7ffeefbff5e8
 runtime.mpreinit(0x444fe0)
   /usr/local/go/src/runtime/os_darwin.c:137 +0x27 fp=0x7ffeefbff630 sp=0x7ffeefbff618
 mcommoninit(0x444fe0)
   /usr/local/go/src/runtime/proc.c:201 +0xc9 fp=0x7ffeefbff658 sp=0x7ffeefbff630
 runtime.schedinit()
   /usr/local/go/src/runtime/proc.c:138 +0x55 fp=0x7ffeefbff680 sp=0x7ffeefbff658
 runtime.rt0_go(0x7ffeefbff6b0, 0x8, 0x7ffeefbff6b0, 0x0, 0x8, 0x7ffeefbff858, 0x7ffeefbff88d, 0x7ffeefbff893, 0x7ffeefbff8ad, 0x7ffeefbff8bd, ...)
   /usr/local/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7ffeefbff688 sp=0x7ffeefbff680

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.