- 博客(33)
- 资源 (26)
- 收藏
- 关注
原创 sc指令创建服务
sc create mysql binPath=“C:\phpStudy\PHPTutorial\MySQL\bin\mysqld.exe” Type=share Start=autonet start mysqlsc create quntool binPath=“C:\wwwroot\www.quntool.com\quntool\quntool.exe” Type=share Start=auto
2021-08-07 15:18:47
379
原创 centos rc.local设置开机启动
centos rc.local设置开机启动rc.local添加一句:sh /root/time.shtime.sh#!/bin/shdate>>/root/a.txtnohup /root/http9566 80 2>&1 &不调用systemctl stop|start|restart|status *** 这个指令的情况下,上面几句就可以完成开机启动了...
2021-05-25 17:20:15
1512
原创 刷某网站新贴,呵呵哒
刷某网站新贴,呵呵哒import os,sys,typesimport time,requests,jsonfrom selenium import webdriverfrom bs4 import BeautifulSoupdef gettime(): return time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))HOSTURLS = []def HostLoc(): try: url = "https:/
2021-05-11 11:06:56
102
原创 刷某网站新贴,呵呵哒
刷某网站新贴,呵呵哒import os,sys,typesimport time,requests,jsonfrom selenium import webdriverfrom bs4 import BeautifulSoupdef gettime(): return time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))HOSTURLS = []def HostLoc(): try: url = "https:/
2021-05-11 11:06:13
588
原创 C# httpget
usingSystem.Net;usingSystem.Web;publicstaticstringHttpGet(stringUrl){try{System.Net.WebRequestwReq=System.Net.WebRequest.Create(Url);//Gettheresponseinstance....
2021-02-12 15:08:13
502
原创 mongo指令第二弹
db.phone.find().skip(0).limit(5).sort({"natural":1}).pretty();db.collection.update(<query>,update的查询条件,类似sqlupdate查询内where后面的。<update>,update:update的对象和一些更新的操作符(如$,$inc...)等,也可以理解为sqlupdate查询内set后面的{...
2021-02-12 15:06:14
170
原创 正则表达式用法c#
publicstaticstringReplaceHtmlTag(stringhtml,intlength){stringstrText=System.Text.RegularExpressions.Regex.Replace(html,"<[^>]+>","");strText=System.Text.RegularExpressions.Regex.Replace(strText,"&[^...
2021-02-12 15:04:27
125
原创 JS常用遍历指令,有了它,整个网络都是你的
//遍历所有A元素javascript:varv=document.getElementsByTagName('a');varr;for(vari=0;i<v.length;i++){r=r+v[i].href+'\r\n';}alert(r);//遍历a标签javascript:varv=document.getElementsByTagName("a");varr="";for(vari=0;i<v.length;i++){if(v[i].classNa...
2021-02-12 15:02:53
297
原创 mongoDB常用指令3
菜鸟留下的菜建立索引:db.baidu.ensureIndex({"phone":1});db.baidu.indexes.find();db.c1.find({x:{'$exists':true},b:{'$exists':true},attr:2});db.phone.find({"139xy.reg":{'$exists':false}});db.phone.find({"139xy.reg":"1"});db.baidu.find({"baidu.s...
2021-02-12 14:58:05
175
2
原创 MongoDB安装步骤
1.添加环境变量D:\mongodb\bin2.启动mongod--pathd:\mongodb\db--port=270003.设置配置文件D:\mongodb\bin\mongodb.conf(这个名字不能改,否则呵呵)#数据库目录dbpathdd:\mongodb\db#日志目录logpath=D:\mongodb\log\mongo.log#日志写出logappend=true#是否授权noauth=true#默认端口port...
2021-02-12 14:55:47
129
原创 lua环境下post上传图片~
local sz = require("sz")local http = require("szocket.http")function create(im) local file = io.open(im,"rb") local files="" if file then files = file:read("*a") file:close() end local response_body = {} loc
2021-02-11 15:03:46
1995
原创 Fiddler拦截数据包
import System;import System.Windows.Forms;import Fiddler;// INTRODUCTION//// Well, hello there!//// Don't be scared! :-)//// This is the FiddlerScript Rules file, which creates some of the menu commands and// other features of Fiddler. You can e
2021-01-19 09:45:20
1640
原创 golang开发的http服务器,这个是终极版了!
package mainimport ( "crypto/md5" "fmt" "io" "log" "net/http" "os" "path/filepath" "strconv" "strings" "time" "path" "bufio")const ( TYPE_json = 1 TYPE_text = 2)const tpl = `<html><head> <title>上传文件</title>
2020-11-12 12:01:05
292
原创 GO语言开发的http简单服务器,可上传,下载
package mainimport ( "crypto/md5" "fmt" "io" "log" "net/http" "os" "path/filepath" "strconv" "strings" "time")const ( TYPE_json = 1 TYPE_text = 2)const tpl = `<html><head> <title>上传文件</title></head>.
2020-08-14 14:57:20
514
原创 一个IP实现开多个小机VPS的连接,Windows下端口转发,以实现远程端口3389
我是做服务器租用的,今天遇到一个客户,他说要租用我的机器开小机,我说可以啊,然后他说默认只有3个IP,我想开5个虚拟机,IP不够怎么办?我于是就给他出了一下方法,方法1:使用win的自带工具实现:在服务器A执行如下CMD命令,建立端口转发规则192.168.1.200:13389 ==> 192.168.137.2:3389netsh interface portproxy add v4tov4 listenaddress=192.168.1.200 listenport=13389 con
2020-07-31 15:13:01
5784
原创 go语言给图片加上水印
package mainimport ( "fmt" "image" "image/draw" "image/jpeg" "image/png" "os" "strings")func PathExists(path string) (bool, error) { _, err := os.Stat(path) if err == nil { return true,...
2019-11-27 18:00:55
1005
原创 java火星文
import java.util.regex.*;import java.util.Random;public class Test { public static void main(String args[]) { String txt = convert("这是我的第一个Java Application 程序!", 2); System.out.print(txt);...
2019-03-30 20:05:16
15167
原创 java正则表达式
import java.util.regex.*;import java.util.Random;public class Test { public static void main(String args[]) { String txt = "[a5x.net]{1}学{1}习{1}网{1}大{1}家{1}赶{1}快{2}来{2}学{8}!{a}"; //System....
2019-03-29 19:10:08
118
转载 go交叉编译arm上的程序
Golang 支持交叉编译,在一个平台上生成另一个平台的可执行程序,最近使用了一下,非常好用,这里备忘一下。Mac 下编译 Linux 和 Windows 64位可执行程序 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ...
2018-08-18 05:31:48
13484
5
原创 福利:go语言开发的sock5代理服务器
package mainimport ( "io" "log" "net" "strconv")func main() { log.SetFlags(log.LstdFlags | log.Lshortfile) l, err := net.Listen("tcp", &a
2018-08-15 09:25:05
2451
2
原创 福利:go语言开发的HTTP代理服务器
package mainimport ( "fmt" "io" "io/ioutil" "log" "net/http" "os")func handler(w http.ResponseWriter, r *http.Request) { var ( resp *http.Response
2018-08-15 09:22:57
1986
1
原创 python 百度获取关键字图片
import requestsimport osfrom myinfo import *def getPages(keyword, pages): params = [] for i in range(30, 30 * pages + 30, 30): params.append({ 'tn': 'resultjson_com', ...
2018-08-01 16:50:42
356
转载 并发下常见的加锁及锁的PHP具体实现代码
<?php/** * CacheLock 进程锁,主要用来进行cache失效时的单进程cache获取,防止过多的SQL请求穿透到数据库 * 用于解决PHP在并发时候的锁控制,通过文件/eaccelerator进行进程间锁定 * 如果没有使用eaccelerator则进行进行文件锁处理,会做对应目录下产生对应粒度的锁 * 使用了eaccelerator则在内存中处理,性能相...
2018-08-01 14:45:44
1189
原创 python 多线程
import os,sys,time,json,timeimport socket,random,hashlibimport requests,configparserimport json,refrom datetime import datetimefrom multiprocessing.dummy import Pool as ThreadPooldef scan_p...
2018-07-31 13:06:51
337
原创 python 快速文件对比
import os,sys,time,json,timeimport socket,random,hashlibimport requests,configparserimport jsonfrom datetime import datetimefrom multiprocessing.dummy import Pool as ThreadPoolarr={};def rea...
2018-07-25 14:26:30
849
原创 python 下载图片完整版本
import os,sys,time,json,timeimport socket,random,hashlibimport requests,configparserimport json,refrom datetime import datetimefrom multiprocessing.dummy import Pool as ThreadPooldef getpicur...
2018-07-25 14:23:59
1042
原创 python 从url中提取文件名
import osurl = 'http://www.**.net/images/logo.gif'filename = os.path.basename(url)print(filename)
2018-07-25 14:07:13
13972
4
原创 python 正则表达式-提取图片地址
别问我为什么要导入那么多头文件,我不会告诉你是为了满足我所有欲求! import os,sys,time,json,timeimport socket,random,hashlibimport requests,configparserimport json,refrom datetime import datetimefrom multiprocessing.dummy imp...
2018-07-25 14:03:50
13946
4
原创 VC++显示图片:
VC++显示图片: 2天的学习,48小时终于搞定了, 简单说一下,最初本来是要用vc显示图片的, dc.draw(...); 就解决了, 随着项目的进展,图片需要保存, dc.selectobject(&bmp); savebmp(bmp, "c:\a.bmp"); 本想这样就完成了呗,后来发现转PDF需要用JPG 那么好了
2014-10-14 16:16:02
4427
转载 DLL注入 之线程劫持
大家好,我是FISH ,以下代码只是属于思路,都是我自己KEY进去的,有错误很抱歉,我尽量注意, 内容来自Greg hoglund 的> . 给应用程序注入新的代码,最常用的技巧是DLL注入,使用这个方法,可以让远线程加载到你自己设计的DLL. DLL本身的功能可以是挂钩函数,修改目标程序的内存空间,DLL注入是很隐藏,很方便的注入手段,(实际上,该方法很容易被发现,有
2009-04-03 10:51:00
2885
HOOK小监督
2018-07-12
VC++自动绘制表格和输出文字
2014-03-12
delphi簡體转繁体,繁体转简体 支持DELPHI7 DELPHI2009
2014-03-12
XMLHTTP实现HTTPS+post登录
2012-03-06
C:\Documents and Settings\Administrator\桌面\临时代码\API拦截教程.rar
2011-02-07
文件映射示例-FISH制作
2010-08-13
VS2005驱动编译环境配置[动画]
2010-03-31
VC远程屏幕控制源码
2010-03-31
Debug view 最新完美汉化版
2010-02-16
我们来看看怎么获取COOKIES 然后就是怎么修改
2009-08-12
rfc1928:SOCKS V5中文版
2009-04-22
ASCII转16进制工具分享
2008-10-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人