mirror of
https://github.com/frohoff/ysoserial.git
synced 2026-09-27 01:11:53 +08:00
Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
218bcffcaa | ||
|
|
b7d0f27b46 | ||
|
|
401bbbc728 | ||
|
|
b03f9580c9 | ||
|
|
bdbfef897a | ||
|
|
863466d2e4 | ||
|
|
ac3d16bbd9 | ||
|
|
2874a69f61 | ||
|
|
91b4266b13 | ||
|
|
51110f9b71 |
@@ -0,0 +1,40 @@
|
|||||||
|
name: publish jar
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*.*.*"
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '8'
|
||||||
|
distribution: 'adopt'
|
||||||
|
cache: 'maven'
|
||||||
|
- name: Set version
|
||||||
|
run: mvn versions:set -DnewVersion=${{ github.ref_name }}
|
||||||
|
- name: Build jar
|
||||||
|
run: mvn -B clean package -DskipTests
|
||||||
|
# - name: publish maven jar
|
||||||
|
# run: mvn -B deploy -DskipTests -DrepositoryId=github
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
||||||
|
- name: Rename artifact
|
||||||
|
run: mv target/ysoserial-${{ github.ref_name }}-all.jar target/ysoserial-all.jar
|
||||||
|
|
||||||
|
- name: Publish GitHub release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
files: target/ysoserial-all.jar
|
||||||
+1
-1
@@ -14,7 +14,7 @@ COPY src ./src
|
|||||||
RUN mvn clean package -DskipTests
|
RUN mvn clean package -DskipTests
|
||||||
RUN mv target/ysoserial-*all*.jar target/ysoserial.jar
|
RUN mv target/ysoserial-*all*.jar target/ysoserial.jar
|
||||||
|
|
||||||
FROM java:8-jdk-alpine
|
FROM eclipse-temurin:8-jdk-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
|
|
||||||
# ysoserial
|
# ysoserial
|
||||||
|
|
||||||
[](https://github.com/frohoff/ysoserial/releases/latest/download/ysoserial-all.jar)
|
||||||
https://badges.gitter.im/frohoff/ysoserial.svg)](
|
[](https://travis-ci.com/github/frohoff/ysoserial)
|
||||||
https://gitter.im/frohoff/ysoserial?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
||||||
[](
|
|
||||||
https://jitpack.io/com/github/frohoff/ysoserial/master-SNAPSHOT/ysoserial-master-SNAPSHOT.jar)
|
|
||||||
[](https://travis-ci.com/frohoff/ysoserial)
|
|
||||||
[](https://ci.appveyor.com/project/frohoff/ysoserial/branch/master)
|
[](https://ci.appveyor.com/project/frohoff/ysoserial/branch/master)
|
||||||
|
[](https://jitpack.io/#frohoff/ysoserial)
|
||||||
|
|
||||||
A proof-of-concept tool for generating payloads that exploit unsafe Java object deserialization.
|
A proof-of-concept tool for generating payloads that exploit unsafe Java object deserialization.
|
||||||
|
|
||||||
@@ -103,14 +100,9 @@ $ java -cp ysoserial.jar ysoserial.exploit.RMIRegistryExploit myhost 1099 Common
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
1. Download the latest jar from
|
[](https://github.com/frohoff/ysoserial/releases/latest/download/ysoserial-all.jar)
|
||||||
[JitPack](https://jitpack.io/com/github/frohoff/ysoserial/master-SNAPSHOT/ysoserial-master-SNAPSHOT.jar)
|
|
||||||
[](
|
|
||||||
https://jitpack.io/com/github/frohoff/ysoserial/master-SNAPSHOT/ysoserial-master-SNAPSHOT.jar)
|
|
||||||
|
|
||||||
Note that GitHub-hosted releases were removed in compliance with the
|
Download the [latest release jar](https://github.com/frohoff/ysoserial/releases/latest/download/ysoserial-all.jar) from GitHub releases.
|
||||||
[GitHub Community Guidelines](
|
|
||||||
https://help.github.com/articles/github-community-guidelines/#what-is-not-allowed)
|
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
@@ -120,7 +112,7 @@ Requires Java 1.7+ and Maven 3.x+
|
|||||||
|
|
||||||
## Code Status
|
## Code Status
|
||||||
|
|
||||||
[](https://travis-ci.org/frohoff/ysoserial)
|
[](https://travis-ci.com/github/frohoff/ysoserial)
|
||||||
[](https://ci.appveyor.com/project/frohoff/ysoserial/branch/master)
|
[](https://ci.appveyor.com/project/frohoff/ysoserial/branch/master)
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|||||||
@@ -39,7 +39,9 @@
|
|||||||
<mainClass>ysoserial.GeneratePayload</mainClass>
|
<mainClass>ysoserial.GeneratePayload</mainClass>
|
||||||
</manifest>
|
</manifest>
|
||||||
</archive>
|
</archive>
|
||||||
|
<descriptors>
|
||||||
<descriptor>assembly.xml</descriptor>
|
<descriptor>assembly.xml</descriptor>
|
||||||
|
</descriptors>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
@@ -66,6 +68,16 @@
|
|||||||
</build>
|
</build>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>central</id>
|
||||||
|
<layout>default</layout>
|
||||||
|
<url>https://repo.maven.apache.org/maven2/</url>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>ysoserial-m2-repo</id>
|
||||||
|
<layout>default</layout>
|
||||||
|
<url>https://raw.githubusercontent.com/frohoff/ysoserial-m2-repo/master</url>
|
||||||
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>jenkins</id>
|
<id>jenkins</id>
|
||||||
<layout>default</layout>
|
<layout>default</layout>
|
||||||
@@ -438,4 +450,11 @@
|
|||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
</profiles>
|
</profiles>
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>github</id>
|
||||||
|
<name>GitHub Packages</name>
|
||||||
|
<url>https://maven.pkg.github.com/frohoff/ysoserial</url>
|
||||||
|
</repository>
|
||||||
|
</distributionManagement>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user