Author SHA1 Message Date
Chris Frohoff 73208370c8 rename artifact 2022-06-29 01:26:43 +00:00
Chris Frohoff 39432cbe6d another fix attempt 2022-06-27 06:54:17 +00:00
Chris Frohoff 048a9db46a fix attempt 2022-06-27 06:48:06 +00:00
Chris Frohoff 77e3aff82f deploy gha changes 2022-06-27 06:43:16 +00:00
Chris Frohoff cfd02f9c2e add token env var 2022-06-25 04:05:21 +00:00
Chris Frohoff 2c4d8d815c fix attempt 2022-06-25 04:01:44 +00:00
Chris Frohoff 96f5b62749 fix attempt 2022-06-25 03:56:37 +00:00
Chris Frohoff 320c299a93 try diff release gh action 2022-06-25 03:50:38 +00:00
Chris Frohoff efb3f61337 fix gh action version 2022-06-25 03:34:50 +00:00
Chris Frohoff 094b92ef28 publish release 2022-06-25 03:33:55 +00:00
Chris Frohoff 42bd6d2586 fix for version 2022-06-25 03:21:52 +00:00
Chris Frohoff 66a012184d fix jar version 2022-06-25 03:13:29 +00:00
Chris Frohoff 8eb5cbfbf6 test fixes (#166)
* fix badge url

* switch to https repo url
2021-08-17 18:54:51 -07:00
YunLemon d13299428d Improve Travis CI build Performance (#164) 2021-08-17 16:14:45 -07:00
Chris Frohoff 79179e00b8 minimal test for escaping issues in createTemplatesImpl (#165) 2021-08-17 16:13:01 -07:00
6 changed files with 64 additions and 2 deletions
+40
View File
@@ -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 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
View File
@@ -26,6 +26,7 @@ after_script:
grep testcase -A1 | grep -B1 -E 'failure|error|skipped' | grep -v -- -- grep testcase -A1 | grep -B1 -E 'failure|error|skipped' | grep -v -- --
matrix: matrix:
fast_finish: true
allow_failures: allow_failures:
- jdk: oraclejdk11 - jdk: oraclejdk11
- jdk: openjdk6 - jdk: openjdk6
+1 -1
View File
@@ -6,7 +6,7 @@
https://gitter.im/frohoff/ysoserial?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) https://gitter.im/frohoff/ysoserial?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Download Latest Snapshot](https://img.shields.io/badge/download-master-green.svg)]( [![Download Latest Snapshot](https://img.shields.io/badge/download-master-green.svg)](
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)
[![Travis Build Status](https://api.travis-ci.org/frohoff/ysoserial.svg?branch=master)](https://travis-ci.org/frohoff/ysoserial) [![Travis Build Status](https://api.travis-ci.com/frohoff/ysoserial.svg?branch=master)](https://travis-ci.com/frohoff/ysoserial)
[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/a8tbk9blgr3yut4g/branch/master?svg=true)](https://ci.appveyor.com/project/frohoff/ysoserial/branch/master) [![Appveyor Build status](https://ci.appveyor.com/api/projects/status/a8tbk9blgr3yut4g/branch/master?svg=true)](https://ci.appveyor.com/project/frohoff/ysoserial/branch/master)
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.
+7
View File
@@ -438,4 +438,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>
@@ -203,7 +203,7 @@ public class PayloadsTest {
File[] jars = dependencies.length > 0 File[] jars = dependencies.length > 0
? Maven.configureResolver() ? Maven.configureResolver()
.withMavenCentralRepo(true) .withMavenCentralRepo(true)
.withRemoteRepo("jenkins", "http://repo.jenkins-ci.org/public/", "default") .withRemoteRepo("jenkins", "https://repo.jenkins-ci.org/public/", "default")
.resolve(dependencies).withoutTransitivity().asFile() .resolve(dependencies).withoutTransitivity().asFile()
: new File[0]; : new File[0];
URL[] urls = new URL[jars.length]; URL[] urls = new URL[jars.length];
@@ -0,0 +1,14 @@
package ysoserial.test.util;
import org.junit.Test;
import ysoserial.payloads.util.Gadgets;
public class GadgetsTest {
@Test
public void test_createTemplatesImpl_noCompilationError() throws Exception {
Gadgets.createTemplatesImpl("hostname");
Gadgets.createTemplatesImpl("echo 'foobar'");
Gadgets.createTemplatesImpl("echo \"foobar\"");
Gadgets.createTemplatesImpl("\"`';\\");
}
}