刚写asm项目时,爬虫服务是通过service对外提供服务。
爬虫服务容器编排yaml文件见 https://github.com/leveryd-asm/asm/blob/f6c481efbe/templates/crawler.yaml
但现在工作流中直接调用爬虫二进制文件
import copy | |
def _get_match_rule(lef_element, element_list): | |
ret = [] | |
if len(element_list) == 1: | |
for i in element_list[0]: | |
new_left_element = copy.copy(lef_element) | |
new_left_element.append(i) | |
ret.append(new_left_element) |
import os | |
class Encoder(object): | |
@staticmethod | |
def chr_to_hex(i): | |
""" | |
49 -> '\x31' | |
:param i: | |
:return: |
// 需要先创建文件 touch file1.txt、file2.txt、file3.txt | |
package main | |
import ( | |
"fmt" | |
"syscall" | |
"os/exec" | |
"os" | |
) |
import re | |
import base64 | |
class GenerateBase64(object): | |
@staticmethod | |
def split_string_by_length(text, length): | |
# 使用正则表达式匹配长度为指定值的子串 | |
pattern = f'.{{{length}}}' | |
return [match.group(0) for match in re.finditer(pattern, text)] |
# this is python3 version poc for https://github.com/jas502n/CVE-2019-11580/blob/master/CVE-2019-11580.py | |
import requests | |
import sys | |
banner = '''\n _______ ________ ___ ___ __ ___ __ __ _____ ___ ___ | |
/ ____\ \ / / ____| |__ \ / _ \/_ |/ _ \ /_ /_ | ____|/ _ \ / _ \ | |
| | \ \ / /| |__ ______ ) | | | || | (_) |______| || | |__ | (_) | | | | | |
| | \ \/ / | __|______/ /| | | || |\__, |______| || |___ \ > _ <| | | | | |
| |____ \ / | |____ / /_| |_| || | / / | || |___) | (_) | |_| | |
# coding:utf-8 | |
import argparse | |
import base64 | |
import json | |
import os | |
from enum import Enum | |
args = None |
刚写asm项目时,爬虫服务是通过service对外提供服务。
爬虫服务容器编排yaml文件见 https://github.com/leveryd-asm/asm/blob/f6c481efbe/templates/crawler.yaml
但现在工作流中直接调用爬虫二进制文件
<?php | |
error_reporting(E_ALL); | |
//设置无限请求超时时间 | |
set_time_limit(0); | |
echo "<h2>TCP/IP Connection</h2>\n"; | |
$ip = '127.0.0.1'; | |
$port = 8099; |
#include <stdio.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <string.h> | |
#include <unistd.h> | |
int main(int argc, char **argv) { | |
int listenfd, connfd; | |
socklen_t clilen; | |
struct sockaddr_in cliaddr, servaddr; |