id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
37,300
CACHE_SIZE.py
nil0x42_phpsploit/src/core/session/settings/CACHE_SIZE.py
""" Set the maximum phpsploit session file size. While using the phpsploit framework, some usage informations are stored, such as commands history. Changing this limit ensures that the session, if saved whith `session save` command will not exceed a certain size. * USE CASES: phpsploit's history uses this value to de...
569
Python
.py
17
31.588235
60
0.811009
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,301
PASSKEY.py
nil0x42_phpsploit/src/core/session/settings/PASSKEY.py
""" HTTP Header to use as main phpsploit payload stager for RCE. PASSKEY is used by BACKDOOR setting, and phpsploit's http tunnel mechanisms as the main payload stager & dispatcher. While exploiting a remote TARGET with phpsploit, make sure PASSKEY have the same value as the one it had when backdoor had been generate...
1,688
Python
.py
39
39.666667
71
0.728886
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,302
VERBOSITY.py
nil0x42_phpsploit/src/core/session/settings/VERBOSITY.py
""" Enable or Disable phpsploit framework verbosity. """ import linebuf import datatypes linebuf_type = linebuf.RandLineBuffer def validator(value): return datatypes.Boolean(value) def default_value(): return False
229
Python
.py
10
20.5
48
0.807512
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,303
REQ_MAX_HEADERS.py
nil0x42_phpsploit/src/core/session/settings/REQ_MAX_HEADERS.py
""" Define how many HTTP Headers can be sent in a request. This setting is needed to tell phpsploit to generate HTTP requests that are acceptable for the target server. * EXAMPLE: Most http servers allow up to 100 Headers per HTTP request. Therefore, if the server is configured to only allow up to 20 headers, phpsplo...
879
Python
.py
24
34.375
68
0.779882
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,304
TARGET.py
nil0x42_phpsploit/src/core/session/settings/TARGET.py
""" Set remote target URL for communication with phpsploit This setting should contain at least 1 URL, previously backdoored with the backdoor code generated by `exploit --get-backdoor`. When running `exploit`, phpsploit uses this URL to try to open a remote shell. """ import linebuf import datatypes linebuf_type =...
527
Python
.py
18
26.277778
54
0.756487
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,305
__init__.py
nil0x42_phpsploit/src/core/session/settings/__init__.py
"""Phpsploit Configuration Settings""" import os import sys import re import importlib import core import metadict import linebuf from ui.color import colorize DEFAULT_HTTP_USER_AGENT = "file://" + core.BASEDIR + "data/user_agents.lst" # pylint: disable=too-many-instance-attributes class Settings(metadict.VarCont...
6,140
Python
.py
147
32.034014
79
0.574183
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,306
REQ_MAX_POST_SIZE.py
nil0x42_phpsploit/src/core/session/settings/REQ_MAX_POST_SIZE.py
""" Set max size of POST data allowed in an HTTP request. This setting is needed to tell phpsploit to generate HTTP requests that are acceptable for the target server. * EXAMPLE: Most http servers allow up to 4MiB per request message body. Therefore, if the server is configured to only allow up to 300KiB, phpsploit c...
979
Python
.py
27
34.037037
63
0.783669
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,307
REQ_POST_DATA.py
nil0x42_phpsploit/src/core/session/settings/REQ_POST_DATA.py
""" Custom string to append to POST data. Some TARGET URLs may require specific variables to be set in POST data (http request message body) This setting only affects HTTP POST Requests, so you should set REQ_DEFAULT_METHOD to "POST" for it to take effect. * EXAMPLE: # if TARGET url needs alternative POST vars to wo...
724
Python
.py
20
34.3
64
0.783862
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,308
REQ_MAX_HEADER_SIZE.py
nil0x42_phpsploit/src/core/session/settings/REQ_MAX_HEADER_SIZE.py
""" Set the maximum length of a single HTTP Header. This setting is needed to tell phpsploit to generate HTTP requests that are acceptable for the target server. * EXAMPLE: Most http servers allow up to 4KB of data per HTTP Header. Therefore, if the server is configured to only allow up to 500 bytes Headers, phpsploi...
922
Python
.py
26
33.153846
65
0.783296
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,309
PROXY.py
nil0x42_phpsploit/src/core/session/settings/PROXY.py
""" Use a proxy to connect to the target You can set a proxy in order to encapsulate the whole phpsploit requests for furtivity or network analysis purposes. This setting supports HTTP, HTTPS, SOCKS4, SOCKS4A, SOCKS5 and SOCKS5H proxy schemes. PROXY SYNTAX: <SCHEME>://<ADDRESS>:<PORT> * EXAMPLES: # To unset PROXY,...
635
Python
.py
20
29.75
63
0.779436
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,310
REQ_INTERVAL.py
nil0x42_phpsploit/src/core/session/settings/REQ_INTERVAL.py
""" Interval (in seconds) to wait between HTTP requests. While sending large payload (like uploading a big file with `upload` plugin), this setting can improve stealth by preventing the remove IDS to raise alerts or block your IP due to excess of consecutive HTTP requests. * EXAMPLES: # randomly sleep between 1 and ...
618
Python
.py
19
30.526316
59
0.797619
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,311
BROWSER.py
nil0x42_phpsploit/src/core/session/settings/BROWSER.py
""" Set attacker's default Web Browser in phpsploit's context. * USE CASES: The '--browser' option of `phpinfo` plugin uses this setting to display remote server's informations locally: > phpinfo --browser """ import linebuf import datatypes linebuf_type = linebuf.RandLineBuffer def validator(value): return da...
390
Python
.py
14
25.785714
60
0.791328
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,312
REQ_HEADER_PAYLOAD.py
nil0x42_phpsploit/src/core/session/settings/REQ_HEADER_PAYLOAD.py
""" Override default payload stager template. It is used as PASSKEY HTTP Header value to execute the final php payload. This setting can be changed to improve stealth. Using a different template than the default one is a good was to bypass static Antivirus/IDS signatures. Make sure that the global behavior remains th...
902
Python
.py
23
36.652174
66
0.765247
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,313
Plugin.py
nil0x42_phpsploit/src/core/plugins/Plugin.py
import os import sys import importlib import importlib.machinery import traceback from datatypes import Path from ui.color import colorize from .exceptions import BadPlugin # pylint: disable=too-few-public-methods class Plugin: """Phpsploit plugin class This object instanciates a new plugin object. Ex...
4,437
Python
.py
121
26.396694
74
0.531702
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,314
__init__.py
nil0x42_phpsploit/src/core/plugins/__init__.py
"""Phpsploit plugins handler """ import os import re import ui import metadict import core from core import session from datatypes import Path from decorators.readonly_settings import readonly_settings import utils.path from .Plugin import Plugin from .exceptions import BadPlugin DEFAULT_PLUGIN = Plugin(core.BASEDI...
5,752
Python
.py
141
30.347518
77
0.578184
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,315
Code.py
nil0x42_phpsploit/src/datatypes/Code.py
try: import pygments import pygments.formatters import pygments.lexers import ui.output USE_PYGMENTS = True except ImportError: USE_PYGMENTS = False def Code(language): class ColoredCode(str): """Piece of source code. (extends str) Takes a string representing a portion of ...
1,453
Python
.py
38
27.184211
71
0.575801
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,316
Path.py
nil0x42_phpsploit/src/datatypes/Path.py
import os from core import encoding import utils.path class Path(str): """File or directory path. (extends str) Takes one or more string arguments, joinded as a single absolute file or directory path. The optionnal keyword arg, `mode` defines some conditionnal path properties. A ValueError...
8,619
Python
.py
222
28.536036
79
0.570607
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,317
ByteSize.py
nil0x42_phpsploit/src/datatypes/ByteSize.py
from ui.color import colorize class ByteSize(int): """Human readable byte size representation. (extends int) Takes an integer or byte number string representation (e.g. "1kb"). >>> size = ByteSize("1 KB") >>> print(size) 1 KiB (1024 bytes) >>> size() 1024 """ _metrics = 'BKMGT' ...
2,153
Python
.py
57
28.350877
73
0.547688
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,318
Proxy.py
nil0x42_phpsploit/src/datatypes/Proxy.py
"""Proxy tunnel for use through urllib http tunnel. (extends str) """ import re from urllib.request import build_opener, ProxyHandler import extproxy from ui.color import colorize class Proxy(str): """Proxy tunnel for use through urllib http tunnel. (extends str) Takes None or a proxy in the form <SCHEME>:/...
2,133
Python
.py
52
32.865385
76
0.584182
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,319
__init__.py
nil0x42_phpsploit/src/datatypes/__init__.py
"""Useful data types collection. This package includes some useful data types, which supports dynamic value and enhanced representations. It has been developped in order to properly handle the PhpSploit framework's session settings and environment variables. PhpSploit dedicated datatypes obey the following convention...
1,923
Python
.py
47
37.617021
70
0.697002
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,320
PhpCode.py
nil0x42_phpsploit/src/datatypes/PhpCode.py
import re from .Code import Code class PhpCode(Code("php")): """Line of PHP Code. (extends str) Takes a string representing a portion of PHP code. >>> code = PhpCode('<? phpinfo() ?>') >>> code() 'phpinfo();' >>> print(code) '<?php phpinfo(); ?>' """ def __new__(cls, string): ...
890
Python
.py
25
27.12
65
0.495916
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,321
ShellCmd.py
nil0x42_phpsploit/src/datatypes/ShellCmd.py
from shnake import parse from .Code import Code class ShellCmd(Code("sh")): """ShellCmd is an executable program or shell command. (extends str) Takes an executable program path or shell command. >>> text_editor = ShellCmd('vim') >>> text_editor() "vim" """ def __new__(cls, executable)...
568
Python
.py
16
28.6875
78
0.635359
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,322
Interval.py
nil0x42_phpsploit/src/datatypes/Interval.py
import re import random from ui.color import colorize class Interval(tuple): """Random float from interval numbers. (extends tuple) Static values can be defined by giving a single number, as an int, float or str. The returned float will then never change. Dynamic values can be defined by giving a co...
1,820
Python
.py
49
29.102041
67
0.55347
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,323
Boolean.py
nil0x42_phpsploit/src/datatypes/Boolean.py
from ui.color import colorize class Boolean(int): """High level boolean representation. (extends int) This datatype could be instanciated by passing a string "True" of "False", both case insensitive. It also can pass an int, 0 meaning false, and anything else true. >>> Boolean("fAlSe") F...
985
Python
.py
32
22.65625
65
0.566138
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,324
WebBrowser.py
nil0x42_phpsploit/src/datatypes/WebBrowser.py
import webbrowser from ui.color import colorize class WebBrowser(str): """Web browser object. (extends str, and users webbrowser lib); Takes the name of an available web browser in the current system. >>> browser = WebBrowser('firefox') >>> browser() "/usr/bin/firefox" >>> browser.open('http...
2,044
Python
.py
55
27.290909
78
0.52965
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,325
Url.py
nil0x42_phpsploit/src/datatypes/Url.py
import re from ui.color import colorize class Url(str): """Http(s) url link. (extends str) Takes a string representation of an url link. it must start with http(s)://, domain can be an IP address or domain name. Example: >>> print(Url('google.fr')) "http://google.fr:80/" """ _match...
1,653
Python
.py
40
32
77
0.519724
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,326
plugin_args.py
nil0x42_phpsploit/plugins/network/portscan/plugin_args.py
import argparse import sys from api import plugin import ui.output def help_format_network_scan(prog): kwargs = dict() kwargs['width'] = ui.output.columns() kwargs['max_help_position'] = 34 format = argparse.HelpFormatter(prog, **kwargs) return (format) def parse(args): parser = argparse.Arg...
1,331
Python
.py
36
30.361111
90
0.622084
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,327
plugin.py
nil0x42_phpsploit/plugins/network/portscan/plugin.py
"""TCP port scanner SYNOPSIS: portscan <HOST> [-p <PORT>] [-t <TIMEOUT>] OPTIONS: -p <PORT> single or range of port(s) to scan (defaults to 20-10000) -t <TIMEOUT> socket timeout (in seconds) (defaults to 0.2) DESCRIPTION: Scan a single port or range of ports on HOST E...
2,323
Python
.py
71
28.535211
69
0.639982
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,328
plugin_args.py
nil0x42_phpsploit/plugins/network/bannergrab/plugin_args.py
import argparse import sys import ui.output def help_format_bannergrab(prog): kwargs = dict() kwargs['width'] = ui.output.columns() kwargs['max_help_position'] = 34 format = argparse.HelpFormatter(prog, **kwargs) return (format) def parse(args): parser = argparse.ArgumentParser(prog="scan", a...
1,315
Python
.py
35
30.828571
90
0.621069
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,329
plugin.py
nil0x42_phpsploit/plugins/network/bannergrab/plugin.py
"""TCP Banner Grabber SYNOPSIS: bannergrab <address> [-p <PORT>] [-t <TIMEOUT>] -p single or range of port(s) to connect to * single : -p port * range : -p min-max -t socket timeout DESCRIPTION: Connect to a single port or range of ports and grab the application banner ...
1,506
Python
.py
48
27.583333
59
0.648199
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,330
plugin.py
nil0x42_phpsploit/plugins/file_system/mkdir/plugin.py
"""Create directory SYNOPSIS: mkdir [-p] <REMOTE-DIRECTORY> OPTIONS: -p no error if existing, make parent directories as needed. DESCRIPTION: The 'mkdir' plugin creates REMOTE-DIRECTORY. It reports an error if it already exists. - Unless '-p' option is provided, parent directory must exis...
1,534
Python
.py
45
30.244444
77
0.698037
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,331
plugin.py
nil0x42_phpsploit/plugins/file_system/cd/plugin.py
r"""Change directory SYNOPSIS: cd [<DIRECTORY>] DESCRIPTION: Change current working directory of phpsploit target. - This plugin checks if the given path is remotely reachable, then changes $PWD environment variable if no errors were found. - If run without argument, $HOME env var is used as ...
1,520
Python
.py
48
27.958333
67
0.722527
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,332
plugin.py
nil0x42_phpsploit/plugins/file_system/pwd/plugin.py
"""Print working directory SYNOPSIS: pwd DESCRIPTION: Print the absolute path name of current/working remote directory on target server. * PASSIVE PLUGIN: No requests are sent to server, as current directory is known by $PWD environment variable (`env PWD`) AUTHOR: nil0x42 <http://goo.gl...
380
Python
.py
14
23.714286
58
0.741667
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,333
plugin.py
nil0x42_phpsploit/plugins/file_system/cat/plugin.py
r"""Print a file content on standard output SYNOPSIS: cat <REMOTE-FILE> DESCRIPTION: Print REMOTE-FILE content on standard output. LIMITATIONS: Unlike the standard GNU's 'cat' tool, multiple files cat is not supported. EXAMPLES: > cat ../includes/connect.inc.php - Display the connect.inc.p...
991
Python
.py
32
27.75
60
0.743129
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,334
plugin.py
nil0x42_phpsploit/plugins/file_system/download/plugin.py
r"""Download a remote file SYNOPSIS: download [-f] <REMOTE-FILE> [<LOCAL-PATH>] OPTIONS: -f overwrite LOCAL-PATH without user confirmation. DESCRIPTION: Download a remote file to your local system. - REMOTE-FILE must be readable. - LOCAL-PATH must be a writable file or directory. - If...
2,996
Python
.py
85
31.317647
72
0.716413
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,335
plugin.py
nil0x42_phpsploit/plugins/file_system/touch/plugin.py
"""Change file timestamps SYNOPSIS: touch [OPTION]... <REMOTE-FILE> OPTIONS: -t <STAMP> use YYYY[-mm[-dd[ HH[:MM[:SS]]]]] instead of current time NOTE: If partially defined (e.g: yyyy/mm only), other values will be randomly chosen, because random values are always l...
1,712
Python
.py
50
30.08
67
0.688107
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,336
plugin.py
nil0x42_phpsploit/plugins/file_system/upload/plugin.py
"""Upload a file SYNOPSIS: upload [-f] <LOCAL-FILE> [<REMOTE-DESTINATION>] OPTIONS: -f Overwrite destination without confirmation if it already exists. DESCRIPTION: Upload a local file to the remote server. - LOCAL-FILE must be readable. - REMOTE-DESTINATION must be a writable fi...
3,193
Python
.py
89
31.651685
75
0.702562
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,337
plugin.py
nil0x42_phpsploit/plugins/file_system/stat/plugin.py
"""Display file status SYNOPSIS: stat [-L] <FILE> OPTIONS: -L follow symbolic links DESCRIPTION: Get remote file status informations AUTHOR: nil0x42 <http://goo.gl/kb2wf> """ import sys import stat from api import plugin from api import server from api import environ from ui.color import ...
2,966
Python
.py
88
29.193182
71
0.629538
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,338
plugin.py
nil0x42_phpsploit/plugins/file_system/rm/plugin.py
"""Remove a file SYNOPSIS: rm <REMOTE-FILE> DESCRIPTION: Remove REMOTE FILE from server. LIMITATIONS: Unlike the standard GNU's 'rm' tool, recursive and multiple file removal are not available. EXAMPLES: > rm pdfs/r57.php - Remove "./pdfs/r75.php" file from remote server AUTHOR: nil0x...
994
Python
.py
37
23.486486
55
0.703075
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,339
plugin.py
nil0x42_phpsploit/plugins/file_system/edit/plugin.py
r"""Edit a remote file with local text editor SYNOPSIS: edit <REMOTE-FILE> DESCRIPTION: Open and Edit REMOTE-FILE content with your favorite editor. - After editing the file (and only if it changed), the plugin uploads the new file content to the remote server. - After applying changes to remote...
1,931
Python
.py
52
33.846154
77
0.728741
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,340
plugin.py
nil0x42_phpsploit/plugins/file_system/rmdir/plugin.py
"""Remove empty directory SYNOPSIS: rmdir <REMOTE-DIRECTORY> DESCRIPTION: Remove REMOTE-DIRECTORY if it is empty. AUTHOR: nil0x42 <http://goo.gl/kb2wf> """ import sys from api import plugin from api import server if len(plugin.argv) != 2: sys.exit(plugin.help) rel_path = plugin.argv[1] abs_path =...
442
Python
.py
18
22.166667
47
0.751807
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,341
plugin.py
nil0x42_phpsploit/plugins/file_system/ls/plugin.py
r"""List directory contents SYNOPSIS: ls [<REMOTE-PATH>] ... DESCRIPTION: List the contents of REMOTE-PATH. - If REMOTE-PATH does not exist, its `basename` is considered a regex pattern, allowing basename wildcards. # Example: list all .txt files in /tmp: > ls /tmp/*.txt - Ending the arg...
3,499
Python
.py
90
33.277778
79
0.632201
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,342
plugin.py
nil0x42_phpsploit/plugins/file_system/cp/plugin.py
r"""Copy a file between two remote paths SYNOPSIS: cp [-f] <REMOTE-FILE> <REMOTE-DESTINATION> OPTIONS: -f overwrite REMOTE-DESTINATION without user confirmation. DESCRIPTION: Copy a remote file to another remote destination. - REMOTE-FILE must be readable. - REMOTE-DESTINATION must be a w...
1,591
Python
.py
43
33.488372
66
0.710183
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,343
plugin.py
nil0x42_phpsploit/plugins/file_system/chmod/plugin.py
r"""Change file mode bits SYNOPSIS: chmod [MODE] <REMOTE FILE> DESCRIPTION: The mode parameter consists of three octal number components specifying access restrictions for the owner, the user group in which the owner is in, and to everybody else in this order. One component can be computed by add...
1,338
Python
.py
38
31.736842
72
0.734059
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,344
plugin.py
nil0x42_phpsploit/plugins/system/phpinfo/plugin.py
"""Output information about PHP's configuration SYNOPSIS: phpinfo [--browser] OPTIONS: --browser Display raw phpinfo()'s HTML output in web browser DESCRIPTION: Display the remote server's phpinfo() data in tabular text, formatted for the terminal. AUTHOR: nil0x42 <http://goo.gl/kb2wf> "...
5,392
Python
.py
146
27.041096
83
0.510161
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,345
plugin_args.py
nil0x42_phpsploit/plugins/system/proclist/plugin_args.py
import argparse import ui.output def help_format_proclist(prog): kwargs = dict() kwargs['width'] = ui.output.columns() kwargs['max_help_position'] = 34 format = argparse.HelpFormatter(prog, **kwargs) return (format) def parse(args): parser = argparse.ArgumentParser(prog="scan", add_help=False,...
414
Python
.py
12
30.25
90
0.714286
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,346
plugin.py
nil0x42_phpsploit/plugins/system/proclist/plugin.py
"""Get process list SYNOPSIS: proclist DESCRIPTION: List processes on remote server. * On WINDOWS, the plugin gets results from: <? win32_ps_list_procs(); ?> * On LINUX, the following is used: <? system("ps -a"); ?> (OPSEC-unsafe !) EXAMPLES: > cloudcredgrab - look f...
982
Python
.py
33
26.090909
62
0.65635
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,347
plugin.py
nil0x42_phpsploit/plugins/system/suidroot/plugin.py
"""Setuid backdoor handler SYNOPSIS: suidroot --create <SUIDROOT_BACKDOOR> suidroot "<COMMAND>" DESCRIPTION: Provide a simple way to install persistent setuid(2) backdoor from previously obtained root access. SUIDROOT_BACKDOOR file should be carefully chosen to not look suspicious. Our goal i...
4,838
Python
.py
124
34.459677
76
0.693721
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,348
plugin.py
nil0x42_phpsploit/plugins/system/run/plugin.py
"""Execute a command on remote server SYNOPSIS: run "<SHELL-COMMAND>" DESCRIPTION: Most phpsploit plugins intend to simulate shell commands to still be able to 'work' when command execution is blocked to PHP security restrictions. Therefore, a few remote servers still allow shell command exec...
3,272
Python
.py
90
32.322222
65
0.694136
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,349
plugin.py
nil0x42_phpsploit/plugins/system/whoami/plugin.py
"""Print effective userid SYNOPSIS: whoami DESCRIPTION: Print the user name associated with current remote server access rights. * PASSIVE PLUGIN: No requests are sent to server, as current user is known by $USER environment variable (`env USER`); AUTHOR: nil0x42 <http://goo.gl/kb2wf> ""...
371
Python
.py
14
23.071429
56
0.737892
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,350
plugin_args.py
nil0x42_phpsploit/plugins/credentials/cloudcredgrab/plugin_args.py
import argparse import ui.output def help_format_cloudcredgrab(prog): kwargs = dict() kwargs['width'] = ui.output.columns() kwargs['max_help_position'] = 34 format = argparse.HelpFormatter(prog, **kwargs) return (format) def parse(args): parser = argparse.ArgumentParser(prog="cloudcredgrab", ...
596
Python
.py
15
34.266667
99
0.695502
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,351
plugin.py
nil0x42_phpsploit/plugins/credentials/cloudcredgrab/plugin.py
"""Cloud Credential Hunter-Grabber SYNOPSIS: cloudcredgrab [-u <USER>] [aws|google|azure] DESCRIPTION: Hunts for cloud credentials cached on the system by looking in user's directory EXAMPLES: > cloudcredgrab - look for all cloud credentials in all user directories > cloudcredgrab -u www aw...
1,878
Python
.py
50
31.08
85
0.641676
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,352
plugin.py
nil0x42_phpsploit/plugins/sql/mssql/plugin.py
r"""A client for Microsoft SQL Server SYNOPSIS: mssql connect <USERNAME>@<HOSTNAME> [-p <PASSWORD>] mssql show [databases|tables] mssql use <DATABASE> mssql "<SQL COMMAND>" DESCRIPTION: This plugin handles "Microsoft SQL Server" interactions through a mysql-like client approach. - The 'con...
6,708
Python
.py
182
31.983516
78
0.637273
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,353
plugin.py
nil0x42_phpsploit/plugins/sql/mysql/plugin.py
r"""A client for MySQL databases SYNOPSIS: mysql connect <USERNAME>@<HOSTNAME> [-p <PASSWORD>] mysql show [databases|tables] mysql use <DATABASE> mysql "<SQL COMMAND>" DESCRIPTION: Run MySQL commands through phpsploit. - The 'connect' argument establishes a connection with given credential...
6,684
Python
.py
182
31.851648
78
0.638554
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,354
plugin.py
nil0x42_phpsploit/plugins/sql/oracle/plugin.py
r"""A client for Oracle PL/SQL databases SYNOPSIS: oracle connect <USER> <PASSWORD> "<CONNSTR>" oracle connect <USER> <PASSWORD> "<CONNSTR>" [<CHARSET>] oracle "<SQL COMMAND>" DESCRIPTION: Run Oracle PL/SQL commands through phpsploit. - The 'connect' argument establishes a connection with give...
6,886
Python
.py
178
33.280899
165
0.628126
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,355
plugin.py
nil0x42_phpsploit/plugins/active_directory/ldap/plugin.py
"""Client for ldap SYNOPSIS: ldap connect <HOST> [<LOGIN> <PASSWORD>] ldap list <DN> ldap search <DN> <FILTER> ldap set [<KEY> <VAL>] DESCRIPTION: > ldap connect <HOST> [<LOGIN> <PASSWORD>] Connect to service > ldap list <DN> List node > ldap search <DN> <FILTER> Fi...
3,434
Python
.py
108
26.185185
94
0.604356
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,356
issue73_show-stacktrace-if-VERBOSITY.sh
nil0x42_phpsploit/test/interface/issue73_show-stacktrace-if-VERBOSITY.sh
#!/bin/bash # Issue #73: Show stack trace when VERBOSITY is True # ref: https://github.com/nil0x42/phpsploit/issues/73 stacktrace='Traceback (most recent call last)' # this SHOULD NOT contain stack trace: $PHPSPLOIT -e 'set VERBOSITY False; source /' > $TMPFILE && FAIL grep -q "$stacktrace" $TMPFILE && FAIL # this ...
450
Python
.tac
10
43.6
64
0.733945
nil0x42/phpsploit
2,187
437
27
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,357
vulture_whitelist.py
themix-project_themix-gui/maintenance_scripts/vulture_whitelist.py
"""Licensed under GPLv3, see https://www.gnu.org/licenses/""" # pylint: disable=pointless-statement from vulture.whitelist_utils import Whitelist # pylint: disable=import-error,no-name-in-module,useless-suppression whitelist: Whitelist = Whitelist() # typehints whitelist.typing.Any whitelist.typing.BinaryIO whitel...
2,168
Python
.py
67
31.179104
115
0.886549
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,358
makefile_shellcheck.py
themix-project_themix-gui/maintenance_scripts/makefile_shellcheck.py
#!/usr/bin/env python import argparse import subprocess # nosec B404 import sys import tempfile from dataclasses import dataclass from typing import Final DEFAULT_ENCODING: Final = "utf-8" SKIP_TARGETS_WITH_CHARS: Final = ("%", ) PHONY: Final = ".PHONY" PRECIOUS: Final = ".PRECIOUS" SKIP_TARGETS: Final = [PHONY, PRE...
7,031
Python
.py
218
22.848624
96
0.537974
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,359
colorz.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/colorz.pyi
# from _typeshed import Incomplete from typing import IO # DEFAULT_NUM_COLORS: int # DEFAULT_MINV: int # DEFAULT_MAXV: int # DEFAULT_BOLD_ADD: int # DEFAULT_FONT_SIZE: int # DEFAULT_BG_COLOR: str # THUMB_SIZE: Incomplete # SCALE: float # def down_scale(x): ... # def up_scale(x): ... # def hexify(rgb): ... # def get_c...
824
Python
.py
26
30
122
0.610553
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,360
colorthief.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/colorthief.pyi
from _typeshed import Incomplete # class cached_property: # func: Incomplete # def __init__(self, func) -> None: ... # def __get__(self, instance, type): ... class ColorThief: image: Incomplete def __init__(self, file: str) -> None: ... def get_color(self, quality: int = ...) -> tuple[int, int...
1,840
Python
.py
59
29.813559
104
0.55662
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,361
types.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/gi/types.pyi
from typing import Any # from ._constants import TYPE_INVALID as TYPE_INVALID # from ._gi import GInterface as GInterface, InterfaceInfo as InterfaceInfo, ObjectInfo as ObjectInfo, StructInfo as StructInfo, VFuncInfo as VFuncInfo, hook_up_vfunc_implementation as hook_up_vfunc_implementation, register_interface_info as ...
1,167
Python
.py
21
53.285714
265
0.684811
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,362
Gdk.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/gi/repository/Gdk.pyi
# mypy: ignore-errors from __future__ import annotations from typing import Optional from typing import Tuple from typing import TypeVar from gi.repository import GObject from gi.repository import GdkPixbuf import cairo BUTTON_MIDDLE: int = ... BUTTON_PRIMARY: int = ... BUTTON_SECONDARY: int = ... CURRENT_TIME: int ...
106,873
Python
.py
3,742
26.231427
86
0.602497
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,363
Gio.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/gi/repository/Gio.pyi
# mypy: ignore-errors from typing import Any from typing import Callable from typing import Optional from typing import overload from gi.repository import GLib from gi.repository import GObject AsyncReadyCallbackU = Callable[[Any, AsyncResult, Any], None] AsyncReadyCallback = Callable[[Any, AsyncResult], None] DBUS_...
132,166
Python
.py
3,418
33.968988
88
0.605467
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,364
GModule.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/gi/repository/GModule.pyi
from gi.repository import GObject _namespace: str = ... _version: str = ... def module_build_path(*args, **kwargs): ... def module_error(*args, **kwargs): ... def module_supported(*args, **kwargs): ... class Module: def build_path(*args, **kwargs): ... def close(*args, **kwargs): ... def error(*args, **k...
570
Python
.py
18
28.222222
43
0.593066
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,365
Atk.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/gi/repository/Atk.pyi
# mypy: disable-error-code=no-untyped-def class Action: ... class Component: ... class Document: ... class EditableText: ... class GObjectAccessible: ... class Hyperlink: ... class HyperlinkImpl: ... class Hypertext: ... class Image: ... class ImplementorIface: ... class Misc: ... class NoOpObject: ... class NoOpObject...
2,767
Python
.py
90
29.722222
55
0.679626
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,366
GLib.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/gi/repository/GLib.pyi
# mypy: ignore-errors from typing import Any, Callable, Optional, Union, overload from gi.repository import GObject ANALYZER_ANALYZING: int = ... ASCII_DTOSTR_BUF_SIZE: int = ... BIG_ENDIAN: int = ... CSET_A_2_Z: str = ... CSET_DIGITS: str = ... CSET_a_2_z: str = ... DATALIST_FLAGS_MASK: int = ... DATE_BAD_DAY: int =...
93,601
Python
.py
2,833
29.220967
106
0.576382
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,367
GdkPixbuf.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/gi/repository/GdkPixbuf.pyi
# mypy: ignore-errors from typing import Optional from gi.repository import Gio from gi.repository import GLib from gi.repository import GObject PIXBUF_MAJOR: int = ... PIXBUF_MICRO: int = ... PIXBUF_MINOR: int = ... PIXBUF_VERSION: str = ... def pixbuf_error_quark(*args, **kwargs): ... class Pixbuf(Gio.Icon, Gio.L...
8,195
Python
.py
241
28.759336
80
0.579246
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,368
Pango.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/gi/repository/Pango.pyi
# mypy: ignore-errors from typing import Optional from gi.repository import GObject ANALYSIS_FLAG_CENTERED_BASELINE: int = ... ANALYSIS_FLAG_IS_ELLIPSIS: int = ... ANALYSIS_FLAG_NEED_HYPHEN: int = ... ATTR_INDEX_FROM_TEXT_BEGINNING = ... ATTR_INDEX_TO_TEXT_END: int = ... GLYPH_EMPTY: int = ... GLYPH_INVALID_INPUT: in...
27,741
Python
.py
884
27.031674
80
0.55756
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,369
GObject.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/gi/repository/GObject.pyi
# mypy: ignore-errors from typing import Any from typing import Optional from typing import Callable from typing import TypeVar from typing import Type from enum import Flag from enum import Enum from gi.repository import GLib _T = TypeVar("_T") G_MAXDOUBLE: float = ... G_MAXFLOAT: float = ... G_MAXINT: int = ... G...
48,488
Python
.py
1,334
32.167166
79
0.581737
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,370
Gtk.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/gi/repository/Gtk.pyi
# mypy: ignore-errors from __future__ import annotations from typing import Any from typing import Callable from typing import Iterator from typing import Literal from typing import Optional from typing import Tuple from typing import TypeVar from typing import Union from typing import overload from gi.repository imp...
267,429
Python
.py
6,696
35.248208
88
0.59934
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,371
haishoku.pyi
themix-project_themix-gui/maintenance_scripts/mypy_stubs/haishoku/haishoku.pyi
# from . import alg as alg, haillow as haillow from _typeshed import Incomplete class Haishoku: def __init__(self) -> None: ... # @classmethod # def loadHaishoku(self, image_path): ... # @property # def dominant(self): ... # @property # def palette(self): ... # def getColorsMean(image_p...
604
Python
.py
17
30.941176
85
0.610922
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,372
migrations.py
themix-project_themix-gui/oomox_gui/migrations.py
import json import os from typing import TYPE_CHECKING from .config import DEFAULT_ENCODING, USER_CONFIG_DIR if TYPE_CHECKING: from typing import Any, Final from .plugin_api import OomoxPlugin CONFIG_MIGRATIONS_DIR: "Final" = os.path.join( USER_CONFIG_DIR, "migrations/", ) class MigrationConfig: ...
1,579
Python
.py
39
32.948718
73
0.655738
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,373
about.py
themix-project_themix-gui/oomox_gui/about.py
import os from typing import TYPE_CHECKING from gi.repository import Gtk from .config import SCRIPT_DIR from .i18n import translate from .plugin_loader import PluginLoader if TYPE_CHECKING: from collections.abc import Mapping, Sequence from .plugin_api import OomoxPlugin class PluginInfo(Gtk.ListBoxRow): ...
3,036
Python
.py
70
34.542857
89
0.638983
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,374
theme_model.py
themix-project_themix-gui/oomox_gui/theme_model.py
import os from typing import TYPE_CHECKING from .config import TERMINAL_TEMPLATE_DIR from .i18n import translate from .plugin_loader import PluginLoader if TYPE_CHECKING: from collections.abc import Callable, Mapping from typing import Any from typing_extensions import NotRequired, TypedDict from .p...
18,721
Python
.py
565
22.384071
90
0.49804
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,375
terminal.py
themix-project_themix-gui/oomox_gui/terminal.py
import operator import os import shutil import sys from pathlib import Path from typing import TYPE_CHECKING, ClassVar from .color import ( SMALLEST_DIFF, ColorDiff, color_hex_from_list, color_list_from_hex, hex_darker, hex_to_int, int_list_from_hex, is_dark, ) from .config import DEFAU...
21,273
Python
.py
540
29.431481
155
0.57985
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,376
multi_export.py
themix-project_themix-gui/oomox_gui/multi_export.py
import os from pathlib import Path from typing import TYPE_CHECKING from gi.repository import Gio, Gtk from .config import BUILTIN_EXPORT_CONFIG_DIR, USER_EXPORT_CONFIG_DIR from .export_common import DialogWithExportPath from .gtk_helpers import ( EntryDialog, ImageButton, ImageMenuButton, WindowWithA...
16,341
Python
.py
390
31.489744
107
0.604228
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,377
config.py
themix-project_themix-gui/oomox_gui/config.py
import os from typing import TYPE_CHECKING if TYPE_CHECKING: from typing import Final FALLBACK_COLOR: "Final" = "F33333" DEFAULT_ENCODING: "Final" = "utf-8" SCRIPT_DIR: "Final" = os.path.dirname(os.path.realpath(__file__)) OOMOX_ROOT_DIR: "Final" = os.path.abspath(os.path.join(SCRIPT_DIR, "../")) COLORS_DIR:...
1,219
Python
.py
42
25.52381
74
0.654966
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,378
settings.py
themix-project_themix-gui/oomox_gui/settings.py
import json import os from typing import TYPE_CHECKING from .config import DEFAULT_ENCODING, USER_CONFIG_DIR from .i18n import translate if TYPE_CHECKING: from typing import Any, Final PRESET_LIST_MIN_SIZE: "Final" = 150 class CommonOomoxConfig: name: str config_dir: str config_path: str defa...
4,195
Python
.py
113
27.59292
83
0.565057
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,379
theme_file.py
themix-project_themix-gui/oomox_gui/theme_file.py
import os import shutil from collections import defaultdict from itertools import groupby from typing import TYPE_CHECKING, NamedTuple from .config import COLORS_DIR, DEFAULT_ENCODING, USER_COLORS_DIR from .helpers import ls_r, mkdir_p from .plugin_api import PLUGIN_PATH_PREFIX from .plugin_loader import PluginLoader ...
4,595
Python
.py
114
32.578947
97
0.635384
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,380
plugin_api.py
themix-project_themix-gui/oomox_gui/plugin_api.py
import os from abc import ABC, abstractmethod from enum import Enum from typing import TYPE_CHECKING, ClassVar from .config import FALLBACK_COLOR, USER_COLORS_DIR if TYPE_CHECKING: from collections.abc import Callable, Iterable from typing import Final from typing_extensions import TypedDict from .e...
5,062
Python
.py
139
29.597122
97
0.654953
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,381
export_common.py
themix-project_themix-gui/oomox_gui/export_common.py
import os import subprocess import tempfile from threading import Thread from typing import ( TYPE_CHECKING, Generic, TypeVar, ) from gi.repository import ( GLib, Gtk, Pango, ) from .config import DEFAULT_ENCODING, USER_EXPORT_CONFIG_DIR from .gtk_helpers import ( CenterLabel, g_abstra...
20,884
Python
.py
519
29.795761
145
0.587922
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,382
multi_export_cli.py
themix-project_themix-gui/oomox_gui/multi_export_cli.py
import argparse import json import os import sys from pathlib import Path from typing import TYPE_CHECKING, Any from gi.repository import Gdk, GLib from oomox_gui.config import COLORS_DIR, DEFAULT_ENCODING, USER_COLORS_DIR, USER_EXPORT_CONFIG_DIR from oomox_gui.i18n import translate from oomox_gui.main import OomoxGt...
6,438
Python
.py
170
29.035294
107
0.602564
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,383
plugin_loader.py
themix-project_themix-gui/oomox_gui/plugin_loader.py
import os import traceback from typing import ClassVar from gi.repository import Gtk from .config import PLUGINS_DIR, USER_PLUGINS_DIR from .helpers import get_plugin_module, log_error from .i18n import translate from .plugin_api import ( OomoxExportPlugin, OomoxIconsPlugin, OomoxImportPlugin, OomoxPl...
4,368
Python
.py
115
29.043478
90
0.612134
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,384
preview_terminal.py
themix-project_themix-gui/oomox_gui/preview_terminal.py
from typing import TYPE_CHECKING from gi.repository import Gtk from .color import convert_theme_color_to_gdk from .i18n import translate from .terminal import generate_xrdb_theme_from_oomox if TYPE_CHECKING: from typing import Final from .theme_file import ThemeT WIDGET_SPACING: "Final" = 10 class Termi...
3,553
Python
.py
81
33.938272
95
0.599653
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,385
preview_icons.py
themix-project_themix-gui/oomox_gui/preview_icons.py
from enum import Enum from pathlib import Path from typing import TYPE_CHECKING from gi.repository import Gtk from .config import DEFAULT_ENCODING from .gtk_helpers import ScaledImage if TYPE_CHECKING: from .plugin_api import OomoxIconsPlugin from .theme_file import ThemeT class IconsNames(Enum): HOME ...
2,234
Python
.py
53
33.792453
94
0.65713
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,386
colors_list.py
themix-project_themix-gui/oomox_gui/colors_list.py
from pathlib import Path from typing import TYPE_CHECKING from gi.repository import GLib, Gtk from .color import ( convert_gdk_to_theme_color, convert_theme_color_to_gdk, ) from .config import FALLBACK_COLOR from .gtk_helpers import GObjectABCMeta, ScaledImage, g_abstractproperty from .i18n import translate f...
30,487
Python
.py
692
31.965318
100
0.569622
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,387
i18n.py
themix-project_themix-gui/oomox_gui/i18n.py
import gettext import os class OomoxTranslation: translation: gettext.NullTranslations | None = None @classmethod def get(cls) -> gettext.NullTranslations: if not cls.translation: cls.translation = gettext.translation( "oomox", localedir=os.path.join( ...
734
Python
.py
20
27.1
67
0.603399
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,388
__init__.py
themix-project_themix-gui/oomox_gui/__init__.py
"""Themix GUI""" import sys from typing import TYPE_CHECKING import gi if TYPE_CHECKING: from typing import Final MIN_PYTHON_VERSION: "Final" = (3, 10) if (version := sys.version_info) < MIN_PYTHON_VERSION: OLD_PYTHON_ERROR = ( "\n" "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" ...
635
Python
.py
18
30.944444
83
0.554649
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,389
preset_list.py
themix-project_themix-gui/oomox_gui/preset_list.py
import os from typing import TYPE_CHECKING, NamedTuple, overload from gi.repository import Gdk, GLib, Gtk from .config import COLORS_DIR, USER_COLORS_DIR from .gtk_helpers import warn_once from .i18n import translate from .plugin_api import PLUGIN_PATH_PREFIX from .plugin_loader import PluginLoader from .settings imp...
17,323
Python
.py
395
32.025316
98
0.557676
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,390
color.py
themix-project_themix-gui/oomox_gui/color.py
import operator from collections.abc import Sequence from typing import TYPE_CHECKING, Annotated from gi.repository import Gdk if TYPE_CHECKING: from typing import Final class RGB: length: "Final" = 3 RED: "Final" = 0 GREEN: "Final" = 1 BLUE: "Final" = 2 hex_size = 255 HexColor = Annotated...
5,620
Python
.py
134
35.268657
100
0.63093
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,391
shortcuts.py
themix-project_themix-gui/oomox_gui/shortcuts.py
import os from typing import TYPE_CHECKING from gi.repository import Gtk from .config import SCRIPT_DIR from .i18n import translate from .plugin_loader import PluginLoader if TYPE_CHECKING: from collections.abc import Callable, Mapping, Sequence from .plugin_api import OomoxExportPlugin, OomoxImportPlugin ...
2,158
Python
.py
52
32.307692
89
0.62703
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,392
gtk_helpers.py
themix-project_themix-gui/oomox_gui/gtk_helpers.py
from abc import ABC, abstractmethod from typing import TYPE_CHECKING, ClassVar from gi.repository import GdkPixbuf, Gio, GLib, Gtk from gi.types import GObjectMeta from .i18n import translate if TYPE_CHECKING: from collections.abc import Callable from typing import Any from gi.repository import Pango ...
12,425
Python
.py
305
31.337705
99
0.599734
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,393
helpers.py
themix-project_themix-gui/oomox_gui/helpers.py
import importlib import os import re import sys import warnings from types import TracebackType from typing import TYPE_CHECKING if TYPE_CHECKING: from collections.abc import Callable, Iterable from types import ModuleType from typing import Any, TypeVar SortableT = TypeVar("SortableT", bound=str) ...
3,861
Python
.py
95
32.589474
97
0.622995
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,394
preview.py
themix-project_themix-gui/oomox_gui/preview.py
import os from pathlib import Path from typing import TYPE_CHECKING from gi.repository import GLib, Gtk from .color import ( MAX_LIGHTNESS, convert_theme_color_to_gdk, hex_lightness, mix_gdk_colors, mix_theme_colors, ) from .config import DEFAULT_ENCODING, FALLBACK_COLOR from .gtk_helpers import S...
23,312
Python
.py
528
31.977273
111
0.574705
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,395
palette_cache.py
themix-project_themix-gui/oomox_gui/palette_cache.py
import json from typing import TYPE_CHECKING from .config import DEFAULT_ENCODING, USER_PALETTE_PATH from .helpers import log_error if TYPE_CHECKING: from gi.repository import Gdk PaletteCacheT = list[str] class PaletteCache: _palette_cache: PaletteCacheT | None = None @staticmethod def load() -...
1,904
Python
.py
49
30.571429
98
0.637351
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,396
main.py
themix-project_themix-gui/oomox_gui/main.py
#!/bin/env python3 import contextlib import os import shutil import signal import sys import traceback from typing import TYPE_CHECKING from gi.repository import Gdk, Gio, GLib, Gtk from .about import show_about from .colors_list import ThemeColorsList from .config import USER_COLORS_DIR from .gtk_helpers import ( ...
37,036
Python
.py
839
33.699642
100
0.606598
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,397
theme_file_parser.py
themix-project_themix-gui/oomox_gui/theme_file_parser.py
import os from typing import TYPE_CHECKING from .config import DEFAULT_ENCODING from .i18n import translate from .plugin_loader import PluginLoader from .theme_model import get_theme_model if TYPE_CHECKING: from collections.abc import Callable from .theme_file import ThemeT, ThemeValueT from .theme_model...
4,806
Python
.py
114
32.052632
98
0.607923
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,398
Dockerfile_python34_venv_arch
themix-project_themix-gui/dockerfiles/Dockerfile_python34_venv_arch
FROM archlinux/base WORKDIR /opt/oomox-build/ # App and test (xvfb, pylint) deps RUN pacman -Syu --noconfirm && \ pacman -S --needed --noconfirm gtk3 python-gobject python-pylint xorg-server-xvfb # python3.4 virtualenv deps RUN pacman -Syu --noconfirm && \ pacman -S --needed --noconfirm python-virtualenv gobj...
1,402
Python
.py
39
31.589744
85
0.635294
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
37,399
Dockerfile_python310_ubuntu_2204
themix-project_themix-gui/dockerfiles/Dockerfile_python310_ubuntu_2204
FROM library/ubuntu:jammy WORKDIR /opt/oomox-build/ # App and test (xvfb, pylint) deps RUN apt-get update -y && \ env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gtk+3.0 python3-gi xvfb python3-pip psmisc python3-pystache python3-yaml make RUN pip3 install setuptools && \ pip3 ins...
416
Python
.py
9
44
159
0.769802
themix-project/themix-gui
2,078
67
24
GPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)