Skip to content

Commit 910b59c

Browse files
author
Ayush RoyChowdhury
committed
lint attempt
1 parent ebb5cb5 commit 910b59c

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

puppeteer_get_substrate_bearer/get_substrate_bearer_office.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ function delay(time) {
2828
// For windows the executable path is to open the existing chrome instead of the
2929
// "Chrome for testing" that is included with puppeteer - solves white screen bug
3030
browser = await puppeteer.launch({
31-
headless: true, // Change to 'false' to see the browser actions for debugging
31+
headless: false, // Change to 'false' to see the browser actions for debugging
3232
// Use the default windows path for chrome exe - solves white window bug for windows
3333
executablePath: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe',
3434
// Start the browser in incognito mode
3535
args: ['--incognito']
3636
});
3737
} catch(e) {
3838
browser = await puppeteer.launch({
39-
headless: true, // Change to 'false' to see the browser actions for debugging
39+
headless: false, // Change to 'false' to see the browser actions for debugging
4040
// Start the browser in fullscreen and incognito mode
4141
args: ['--start-fullscreen', '--incognito']
4242
});

src/powerpwn/cli/runners.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,18 @@ def run_copilot_chat_command(args):
204204
if args.gui:
205205
CopilotGui().run(output_dir)
206206
return
207-
208207
elif args.copilot_subcommand == "dump":
209208
dump = Dump(parsed_args, args.directory)
210209
output_dir = dump.run()
211210
if args.gui:
212211
CopilotGui().run(output_dir)
213212
return
213+
elif args.copilot_subcommand == "oversharing":
214+
oversharing = Oversharing(parsed_args, args.directory)
215+
output_dir = oversharing.run()
216+
if args.gui:
217+
CopilotGui().run(output_dir)
218+
return
214219

215220
raise NotImplementedError(f"Copilot {args.copilot_subcommand} subcommand has not been implemented yet.")
216221

@@ -229,4 +234,4 @@ def run_copilot_studio_command(args):
229234

230235

231236
def run_powerpages_command(args):
232-
PowerPages(args)
237+
PowerPages(args)

src/powerpwn/copilot/copilot_connector/copilot_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def __get_conversation_parameters(self, refresh: bool = False) -> ConversationPa
365365
url = self.__get_websocket_url(access_token, self.__arguments.scenario, parsed_jwt)
366366
session_id = self.__get_session_from_url(url)
367367

368-
available_plugins: list[PluginInfo] = self.__get_plugins(access_token)
368+
available_plugins: list[PluginInfo] = []
369369

370370
return ConversationParameters(
371371
conversation_id=str(uuid.uuid4()), url=url, session_id=session_id, available_plugins=available_plugins, used_plugins=[]

src/powerpwn/copilot/oversharing/discovery.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@ def handle_response(raw_message):
125125
print("DEBUG: Extracted files:", extracted_files)
126126
return extracted_files
127127

128-
129-
130-
# ---------------- MAIN SCRIPT ----------------
131-
132128
if __name__ == "__main__":
133129
user = os.getenv('m365user')
134130
user_password = os.getenv('m365pass')
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
https://copilotstudio.microsoft.com/environments/Default-32f814a9-68c8-4ca1-93aa-5594523476b3/bots/cr6e4_agent7/canvas?__version__=2
2+
https://copilotstudio.microsoft.com/environments/Default-32f814a9-68c8-4ca1-93aa-5594523476b3/bots/cr6e4_copilot2/canvas?__version__=2
3+
https://copilotstudio.microsoft.com/environments/Default-32f814a9-68c8-4ca1-93aa-5594523476b3/bots/cr6e4_copilot7/canvas?__version__=2
4+
https://copilotstudio.microsoft.com/environments/Default-32f814a9-68c8-4ca1-93aa-5594523476b3/bots/cr6e4_copilotPoc/canvas?__version__=2

0 commit comments

Comments
 (0)