Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions html.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,26 @@ export default class Html extends PureComponent {
{scriptElement}
<script
dangerouslySetInnerHTML={{
__html: `(function(d) {
var config = {
kitId: 'vlk1qbe',
scriptTimeout: 3000,
async: true
},
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
})(document);
`,
__html: `
(function(d) {
var config = {
kitId: 'vlk1qbe',
scriptTimeout: 3000,
async: true
},
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\\bwf-loading\\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";
tk.src='https://use.typekit.net/'+encodeURIComponent(config.kitId)+'.js';
tk.async=true;
tk.onload=tk.onreadystatechange=function(){
a=this.readyState;
if(f||a&&a!="complete"&&a!="loaded")return;
f=true;
clearTimeout(t);
try{Typekit.load(config)}catch(e){}
};
s.parentNode.insertBefore(tk,s)
})(document);
`,
}}
/>
</body>
Expand Down
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import requests
import subprocess
import shlex

def func_calls():
formats.get_format()
Expand All @@ -18,9 +19,9 @@ def func_calls():
prep = req.prepare()
session.rebuild_proxies(prep, proxies)

# Introduce a command injection vulnerability
# Fixed command injection vulnerability
user_input = input("Enter a command to execute: ")
command = "ping " + user_input
command = "ping " + shlex.quote(user_input)
subprocess.call(command, shell=True)

print("Command executed!")
print("Command executed!")