Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9507d7b

Browse filesBrowse files
author
xorrior
committed
Fixed incorrect variable reference in debug statement
1 parent cdb5ba8 commit 9507d7b
Copy full SHA for 9507d7b

2 files changed

+31-1Lines changed: 31 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+30Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// grab the chrome object
2+
var chrome = Application("Google Chrome");
3+
4+
// grab all of the chrome windows
5+
var windows = chrome.windows;
6+
7+
// loop through the chrome windows
8+
for(i = 0; i < windows.length; i++){
9+
10+
// grab all of the tabs for the window
11+
var tabs = windows[i].tabs;
12+
13+
// loop through the tabs
14+
for(j = 0; j < tabs.length; j++){
15+
16+
// grab the url for the tab
17+
var url = tabs[j].url();
18+
19+
// check to see if the tab url matches "soundcloud.com"
20+
if(url.match(/soundcloud.com/)){
21+
22+
// in the tab lets execute some javascript
23+
tabs[j].execute({
24+
25+
// select the .playControl div and click it!
26+
javascript: "document.querySelector('.playControl').click();"
27+
});
28+
}
29+
}
30+
}
Collapse file

‎script_runners/jxa_runner/src/lib.rs‎

Copy file name to clipboardExpand all lines: script_runners/jxa_runner/src/lib.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub extern "C" fn init() {
3131
let unencrypted_payload = xor_routine(CODE, KEY);
3232
if cfg!(debug_assertions) {
3333
log::debug!("Decrypted JXA payload with xor routine and key\n");
34-
log::debug!("JXA CODE: {:?}\n", python_code);
34+
log::debug!("JXA CODE: {:?}\n", std::str::from_utf8(&unencrypted_payload).unwrap());
3535
}
3636
let code_string = std::str::from_utf8(&*unencrypted_payload).unwrap();
3737
let code_cstring = CString::new(code_string).expect("Couldn't create CString");

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.