Skip to content

Instantly share code, notes, and snippets.

View langu-xyz's full-sized avatar
:octocat:
Hacking

langu_xyz langu-xyz

:octocat:
Hacking
View GitHub Profile
@langu-xyz
langu-xyz / MethodDeclare.java
Last active September 8, 2020 02:02
javaparse获取webapi list
package net.uxss.b1ueb0ne.javaparse;
import ...
@Component
public class MethodDeclare {
public JSONArray declareParseCode(String code) {
JSONArray declareJsonArray = new JSONArray();
CompilationUnit compilationUnit = JavaParser.parse(code);
from datetime import datetime, timedelta
t = datetime(2012, 1, 1, 17, 0, 0)
while t <datetime(2012, 1, 1, 23, 59, 0):
print(str(t.time()).replace(':', ''))
t = t + timedelta(seconds=1)
eg.
170013
170014
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
public class JavaPid {
public static void main(String[] args) {
RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean();
String name = runtime.getName();
System.out.println("当前进程的标识为:"+name);
int index = name.indexOf("@");
if (index != -1) {
>>> t= r'\xe6\x97\xa0\xe6\xb3\x95\xe5\x8a\xa0\xe8\xbd\xbd\xe6\x8e\xa7\xe5\x88\xb6\xe5\x99\xa8:Index.php'
>>> print (bytes(t).decode('utf-8'))
无法加载控制器:Index.php
>>> t= b'\xe6\x97\xa0\xe6\xb3\x95\xe5\x8a\xa0\xe8\xbd\xbd\xe6\x8e\xa7\xe5\x88\xb6\xe5\x99\xa8:Index.php'
>>> print (t.decode('utf-8'))
无法加载控制器:Index.php
import java.rmi.AccessException;
import java.rmi.AlreadyBoundException;
import java.rmi.ConnectException;
import java.rmi.ConnectIOException;
import java.rmi.MarshalledObject;
import java.rmi.NoSuchObjectException;
import java.rmi.NotBoundException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.activation.ActivationDesc;