Skip to content

Instantly share code, notes, and snippets.

View song940's full-sized avatar
👨‍💻
Typing ...

Lsong song940

👨‍💻
Typing ...
View GitHub Profile
async function handleRequest(request, env) {
const url = new URL(request.url);
const domain = url.searchParams.get('domain');
const ip = url.searchParams.get('ip') || request.headers.get('CF-Connecting-IP');
const type = url.searchParams.get('type') || (isIPv6(ip) ? 'AAAA' : 'A');
const token = url.searchParams.get('token') || env.API_TOKEN;
if (!domain) {
return new Response('Missing domain query parameter', { status: 400 });
}
package cli
import (
"os"
"regexp"
"strings"
)
func ParseArgs() ([]string, map[string]any) {
args := []string{}
package main
import (
"bufio"
"fmt"
"io"
"log"
"os"
"strings"
)
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request));
})
async function fetchAndApply(request) {
let response = null;
let method = request.method;
package main
import (
"io"
"log"
"net"
"net/http"
"time"
)
id address
110000 北京市
110100 北京市市辖区
110101 北京市东城区
110102 北京市西城区
110103 北京市崇文区
110104 北京市宣武区
110105 北京市朝阳区
110106 北京市丰台区
110107 北京市石景山区
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LGTM</title>
<style>
body {
width: 80%;
We can't make this file beautiful and searchable because it's too large.
1 148 2 http://ww3.sinaimg.cn/bmiddle/875550b5tw1dq7jm7krrnj.jpg jandan_pic 2013-09-26 16:06:58
2 180 1 http://ww3.sinaimg.cn/bmiddle/537d92b0jw1dq7jafypkaj.jpg jandan_pic 2013-09-26 16:06:58
3 191 7 http://ww4.sinaimg.cn/bmiddle/61e8a1fdjw1dq7ifi6r5lj.jpg jandan_pic 2013-09-26 16:06:59
4 211 4 http://ww3.sinaimg.cn/bmiddle/537d92b0jw1dq7j83uai0j.jpg jandan_pic 2013-09-26 16:07:00
5 75 5 http://ww2.sinaimg.cn/bmiddle/3f7eea27jw1dq68dc2mt4j.jpg jandan_pic 2013-09-26 16:07:00
6 84 4 http://www.graphicdesignblog.org/wp-content/uploads/2011/10/Teenage-Mutant-Ninja-Turtles.jpg jandan_pic 2013-09-26 16:07:01
7 33 1 http://ww1.sinaimg.cn/bmiddle/62faf073jw1dq7ido9rjzj.jpg jandan_pic 2013-09-26 16:07:01
8 249 12 http://ww3.sinaimg.cn/bmiddle/5cdf73cbjw1dq7h2xthugj.jpg jandan_pic 2013-09-26 16:07:02
9 312 10 http://ww3.sinaimg.cn/bmiddle/62037b5ajw1dq7hd98rdqg.gif jandan_pic 2013-09-26 16:07:02
10 77 1 http://ww4.sinaimg.cn/bmiddle/6ffe1db4jw1dq7i6o89jyj.jpg jandan_pic 2013-09-26 16:07:02
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from socket import *
import threading
lock = threading.Lock()
openNum = 0
threads = []
def portScanner(host,port):