Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
StreamMon
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
StreamMon
Commits
528fffee
Commit
528fffee
authored
Nov 19, 2024
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add base files
parents
Pipeline
#161
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
126 additions
and
0 deletions
+126
-0
monitor_streamate.py
monitor_streamate.py
+58
-0
win_installer.iss
win_installer.iss
+68
-0
No files found.
monitor_streamate.py
0 → 100644
View file @
528fffee
import
asyncio
from
playwright.async_api
import
async_playwright
import
argparse
import
os
from
datetime
import
datetime
async
def
monitor_streamate
(
log_path
):
async
with
async_playwright
()
as
p
:
browser
=
await
p
.
chromium
.
connect_over_cdp
(
"http://localhost:9222"
)
while
True
:
contexts
=
browser
.
contexts
for
context
in
contexts
:
for
page
in
context
.
pages
:
if
"performerclient.streamatemodels.com"
in
page
.
url
:
print
(
f
"Found Streamate tab"
)
await
monitor_requests
(
page
,
log_path
)
await
asyncio
.
sleep
(
5
)
# Check every 5 seconds
async
def
monitor_requests
(
page
,
log_path
):
async
def
log_request
(
request
):
if
request
.
resource_type
not
in
[
'document'
,
'image'
,
'font'
,
'stylesheet'
]:
log_entry
=
f
"[{datetime.now()}] Request: {request.method} {request.url}
\n
"
with
open
(
log_path
,
'a'
)
as
f
:
f
.
write
(
log_entry
)
async
def
log_response
(
response
):
#print(await response.body())
#print(response.request.resource_type)
#if response.request.resource_type not in ['document', 'image', 'font', 'stylesheet']:
if
response
.
request
.
resource_type
in
[
'xhr'
]
and
not
response
.
url
.
endswith
(
".mp3"
):
log_entry
=
f
"[{datetime.now()}] Response: {response.status} {response.url} -> BODY: "
log_body
=
await
response
.
body
()
with
open
(
log_path
,
'a'
)
as
f
:
f
.
write
(
log_entry
)
print
(
log_body
)
f
.
write
(
str
(
log_body
))
f
.
write
(
"
\n\n
"
)
page
.
on
(
"request"
,
log_request
)
page
.
on
(
"response"
,
log_response
)
while
True
:
await
asyncio
.
sleep
(
1
)
if
__name__
==
"__main__"
:
parser
=
argparse
.
ArgumentParser
(
description
=
"Monitor Streamate requests"
)
parser
.
add_argument
(
"--log_path"
,
type
=
str
,
default
=
"streamate_requests.log"
,
help
=
"Path to the log file"
)
args
=
parser
.
parse_args
()
log_dir
=
os
.
path
.
dirname
(
args
.
log_path
)
if
log_dir
and
not
os
.
path
.
exists
(
log_dir
):
os
.
makedirs
(
log_dir
)
asyncio
.
run
(
monitor_streamate
(
args
.
log_path
))
win_installer.iss
0 → 100644
View file @
528fffee
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "StreamMon"
#define MyAppVersion "0.1"
#define MyAppPublisher "SexHackMe"
#define MyAppURL "https://www.sexhack.me"
#define MyAppExeName "streamon.exe"
#define MyAppAssocName MyAppName + ""
#define MyAppAssocExt ".exe"
#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt
[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{9C27289B-18E3-448B-9D1B-98B7B21E08D3}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run
; on anything but x64 and Windows 11 on Arm.
ArchitecturesAllowed=x64compatible
; "ArchitecturesInstallIn64BitMode=x64compatible" requests that the
; install be done in "64-bit mode" on x64 or Windows 11 on Arm,
; meaning it should use the native 64-bit Program Files directory and
; the 64-bit view of the registry.
ArchitecturesInstallIn64BitMode=x64compatible
ChangesAssociations=yes
DefaultGroupName={#MyAppName}
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputBaseFilename=streamon
Compression=lzma
SolidCompression=yes
WizardStyle=modern
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "C:\Users\User\Desktop\streammon\dist\streamon\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\User\Desktop\streammon\dist\streamon\_internal\*"; DestDir: "{app}\_internal"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Registry]
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".myp"; ValueData: ""
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment