GithubHelp home page GithubHelp logo

zed's Introduction

zed

Get your session cookie. This simple tool takes a target url and login credentials and tries to retrieve the value of the given cookie.

Zed assumes that there are username and password fields in a form on ZED_LOGIN_TARGET, as well as a submit button.

Usage

# export ZED_LOGIN_TARGET=https://www.example.com ZED_COOKIE=mySession
#   ZED_USERNAME=test-user ZED_PASSWORD=password1 ZED_VERBOSE= zed
Cookie 'mySession' for user 'test-user' at 'https://www.example.com':
X+pN/8FthIx2CVjQbbjAIBBD/52iE+gCxl1GewQrh9tyNKrM6f6938f3b72c60359H4sIAAAAAAAAAx2N0Q2AIBBD/52iE+gCxl1OaQCDgEfO/J9TC8nIA2SagAAAA==

Options

Zed is configured via environment variables:

  • ZED_LOGIN_TARGET: url with the login form.
  • ZED_COOKIE: name of the cookie that you want to print out.
  • ZED_USERNAME and ZED_PASSWORD: login credentials.
  • ZED_PROXY: url for a proxy server, i.e. http://proxy.example.com:3128/.
  • ZED_DEBUG: turn on browser console logs by defining this variable in the environment.
  • ZED_VERBOSE: echo user, cookie, and environment name in response.

zed's People

Contributors

mamapitufo avatar

Watchers

Swathy Valluri avatar

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.