-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7bf9ad
commit 11b0e14
Showing
3 changed files
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/python | ||
|
||
# Copyright (C) 2022 Alexandre Borges <[email protected]> | ||
# Copyright (C) 2024 Alexandre Borges <[email protected]> | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
|
@@ -24,13 +24,13 @@ | |
from datetime import datetime | ||
|
||
__author__ = "Alexandre Borges" | ||
__copyright__ = "Copyright 2022, Alexandre Borges" | ||
__copyright__ = "Copyright 2024, Alexandre Borges" | ||
__license__ = "GNU General Public License v3.0" | ||
__version__ = "1.2" | ||
__email__ = "alexandreborges at blackstormsecurity.com" | ||
__version__ = "1.3" | ||
__email__ = "[email protected]" | ||
|
||
cfpurl = 'https://api.cfptime.org/api/cfps' | ||
upurl = 'https://api.cfptime.org/api/upcoming' | ||
cfpurl = 'https://api.cfptime.org/api/cfps/' | ||
upurl = 'https://api.cfptime.org/api/upcoming/' | ||
|
||
class mycolors: | ||
|
||
|
@@ -69,7 +69,9 @@ def cfplist(param): | |
|
||
try: | ||
|
||
response = requests.get(param) | ||
session = requests.Session() | ||
session.headers.update({'Content-Type': 'application/json'}) | ||
response = session.get(param) | ||
cfptext = json.loads(response.text) | ||
|
||
if (len(cfptext) > 0): | ||
|
@@ -133,7 +135,7 @@ def uplist(param): | |
upcoming = 0 | ||
win = 0 | ||
|
||
parser = argparse.ArgumentParser(prog=None, description="CFPsec lists Call For Papers or upcoming Hacking/Security Conferences based on cfptime.org website. The current version is 1.2", usage= "python cfpsec.py -c <0|1> -u <0|1> -w <0|1>") | ||
parser = argparse.ArgumentParser(prog=None, description="CFPsec lists Call For Papers or upcoming Hacking/Security Conferences based on cfptime.org website. The current version is 1.3", usage= "python cfpsec.py -c <0|1> -u <0|1> -w <0|1>") | ||
parser.add_argument('-c', '--cfp', dest='cfp',type=int, default=1, help='List Call For Papers of Hacking/Securiy Conferences.') | ||
parser.add_argument('-u', '--upcoming', dest='upcoming',type=int, default=0, help='List all upcoming Hacking/Security Conferences.') | ||
parser.add_argument('-w', '--win', dest='win',type=int, default=0, help='Set to 1 whether you are running it on Windows 10 or older.') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ | |
|
||
setup( | ||
name="cfpsec", | ||
version="1.2", | ||
version="1.3", | ||
author="Alexandre Borges", | ||
author_email="[email protected]", | ||
author_email="[email protected]", | ||
license="GNU GPL v3.0", | ||
url="https://github.com/alexandreborges/cfpsec", | ||
description=("CFPsec is a client program that retrieves the list of Call For Papers or/and upcoming Hacking/Security Conferences based on cfptime.org website."), | ||
|