-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #250 from noir-cr/dev
Release v0.13.0
- Loading branch information
Showing
38 changed files
with
1,951 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Snapcraft tab Publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
snapcraft-releaser: | ||
runs-on: ubuntu-latest | ||
name: snapcraft-releaser | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- amd64 | ||
- arm64 | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- uses: diddlesnaps/snapcraft-multiarch-action@v1 | ||
with: | ||
path: stores/snapcraft/stable | ||
architecture: ${{ matrix.platform }} | ||
id: build | ||
|
||
- uses: diddlesnaps/snapcraft-review-action@v1 | ||
with: | ||
snap: ${{ steps.build.outputs.snap }} | ||
|
||
- uses: snapcore/action-publish@master | ||
env: | ||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }} | ||
with: | ||
snap: ${{ steps.build.outputs.snap }} | ||
release: stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: noir | ||
version: 0.12.2 | ||
version: 0.13.0 | ||
|
||
authors: | ||
- hahwul <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: noir | ||
base: core20 | ||
version: 0.13.0 | ||
summary: Attack surface detector that identifies endpoints by static analysis. | ||
description: | | ||
Noir is your ally in the quest for digital fortification. | ||
A cutting-edge attack surface detector, it unveils hidden endpoints through meticulous static analysis. | ||
grade: stable # must be 'stable' to release into candidate/stable channels | ||
confinement: strict # use 'strict' once you have the right plugs and slots | ||
license: MIT | ||
|
||
apps: | ||
noir: | ||
command: noir | ||
|
||
parts: | ||
noir: | ||
source: ./ | ||
plugin: nil #crystal | ||
#crystal-channel: latest/stable | ||
override-build: | | ||
curl -fsSL https://crystal-lang.org/install.sh | sudo bash | ||
snapcraftctl pull | ||
shards install | ||
shards build --release | ||
cp ./bin/noir $SNAPCRAFT_PART_INSTALL/ | ||
snapcraftctl build | ||
build-packages: | ||
- git | ||
- libssl-dev | ||
- libxml2-dev | ||
- libz-dev | ||
- libyaml-dev | ||
- libpcre2-dev | ||
- libevent-dev | ||
- libgmp-dev | ||
stage-packages: | ||
- libssl1.1 | ||
- libxml2 | ||
- libevent-2.1-7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.gradle |
22 changes: 22 additions & 0 deletions
22
spec/functional_test/fixtures/java_spring/src/HttpServletRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.test; | ||
import javax.servlet.http.HttpServletRequest; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
public class MyController { | ||
|
||
@GetMapping("/greet") | ||
public String greet(HttpServletRequest request) { | ||
String name = request.getParameter("name"); | ||
if (name == null || name.isEmpty()) { | ||
name = "World"; | ||
} | ||
|
||
String header = request.getHeader("header"); | ||
if (header == null || header.isEmpty()) { | ||
header = "!"; | ||
} | ||
return "Hello, " + name + header; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
spec/functional_test/fixtures/java_spring/src/RequestParam.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.test; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
public class MyController { | ||
|
||
@GetMapping("/greet2") | ||
public String greet2(@RequestParam("myname") String a, @RequestParam("b") int b, String name) { | ||
return "Hello, " + a + b"!"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.gradle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require "../../../src/detector/detectors/*" | ||
|
||
describe "Detect Java Spring" do | ||
options = default_options() | ||
instance = DetectorKotlinSpring.new options | ||
|
||
it "build.gradle.kts" do | ||
instance.detect("build.gradle.kts", "'org.springframework.boot' version '2.6.2'").should eq(true) | ||
end | ||
end |
Oops, something went wrong.