Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d38a7e126d | |||
| 858b11ba23 | |||
| f60ffe3525 | |||
| a10c6f76d3 | |||
| 5d5f096033 | |||
| b8dc73a720 | |||
| 27280e8d45 | |||
| 8c5e12960d | |||
| 849dc9b0ee | |||
| 617d94add8 | |||
| 427fa2ffed | |||
| 7b7d706681 | |||
|
|
ebf0988f7d | ||
| 202e106486 | |||
| 3507540770 | |||
| 73c6eae26a | |||
|
|
eb0f36d314 |
15
.github-archive/.github/workflows/issues.yml
vendored
Normal file
15
.github-archive/.github/workflows/issues.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
name: Issue assignment
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto-assign:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 'Auto-assign issue'
|
||||||
|
uses: pozil/auto-assign-issue@v1
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
assignees: luketainton
|
||||||
5
.github-archive/renovate.json
Normal file
5
.github-archive/renovate.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"extends": [
|
||||||
|
"config:base"
|
||||||
|
]
|
||||||
|
}
|
||||||
80
.gitlab-ci.yml
Normal file
80
.gitlab-ci.yml
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- build
|
||||||
|
- upload
|
||||||
|
- release
|
||||||
|
|
||||||
|
sast:
|
||||||
|
stage: test
|
||||||
|
include:
|
||||||
|
- template: Security/SAST.gitlab-ci.yml
|
||||||
|
|
||||||
|
build-docker:
|
||||||
|
stage: build
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
image: docker:19.03.12
|
||||||
|
services:
|
||||||
|
- docker:19.03.12-dind
|
||||||
|
variables:
|
||||||
|
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
|
||||||
|
script:
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
- docker build -t $CI_REGISTRY_IMAGE:latest -t $IMAGE_TAG .
|
||||||
|
- docker build -t $IMAGE_TAG -t $CI_REGISTRY_IMAGE:latest .
|
||||||
|
- docker push $IMAGE_TAG
|
||||||
|
- docker push $CI_REGISTRY_IMAGE:latest
|
||||||
|
|
||||||
|
build-binary:
|
||||||
|
stage: build
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
image: golang:1.17.3
|
||||||
|
before_script:
|
||||||
|
- cd $GOPATH/src
|
||||||
|
- mkdir -p gitlab.com/$CI_PROJECT_NAMESPACE
|
||||||
|
- cd gitlab.com/$CI_PROJECT_NAMESPACE
|
||||||
|
- ln -s $CI_PROJECT_DIR
|
||||||
|
- cd $CI_PROJECT_NAME
|
||||||
|
script:
|
||||||
|
- CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -o bin/iPilot-${CI_COMMIT_TAG}-darwin-amd64
|
||||||
|
- CGO_ENABLED=0 GOARCH=arm64 GOOS=darwin go build -o bin/iPilot-${CI_COMMIT_TAG}-darwin-arm64
|
||||||
|
- CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o bin/iPilot-${CI_COMMIT_TAG}-linux-amd64
|
||||||
|
- CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -o bin/iPilot-${CI_COMMIT_TAG}-win-amd64.exe
|
||||||
|
- CGO_ENABLED=0 GOARCH=386 GOOS=windows go build -o bin/iPilot-${CI_COMMIT_TAG}-win-x86.exe
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- bin/
|
||||||
|
|
||||||
|
upload:
|
||||||
|
stage: upload
|
||||||
|
image: curlimages/curl:latest
|
||||||
|
rules:
|
||||||
|
- if: "$CI_COMMIT_TAG"
|
||||||
|
dependencies:
|
||||||
|
- build-binary
|
||||||
|
script:
|
||||||
|
- 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/iPilot-${CI_COMMIT_TAG}-darwin-amd64
|
||||||
|
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/iPilot/${CI_COMMIT_TAG}/iPilot-${CI_COMMIT_TAG}-darwin-amd64"'
|
||||||
|
- 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/iPilot-${CI_COMMIT_TAG}-darwin-arm64
|
||||||
|
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/iPilot/${CI_COMMIT_TAG}/iPilot-${CI_COMMIT_TAG}-darwin-arm64"'
|
||||||
|
- 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/iPilot-${CI_COMMIT_TAG}-linux-amd64
|
||||||
|
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/iPilot/${CI_COMMIT_TAG}/iPilot-${CI_COMMIT_TAG}-linux-amd64"'
|
||||||
|
- 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/iPilot-${CI_COMMIT_TAG}-win-amd64.exe
|
||||||
|
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/iPilot/${CI_COMMIT_TAG}/iPilot-${CI_COMMIT_TAG}-win-amd64.exe"'
|
||||||
|
- 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/iPilot-${CI_COMMIT_TAG}-win-x86.exe
|
||||||
|
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/iPilot/${CI_COMMIT_TAG}/iPilot-${CI_COMMIT_TAG}-win-x86.exe"'
|
||||||
|
|
||||||
|
release:
|
||||||
|
stage: release
|
||||||
|
image: registry.gitlab.com/gitlab-org/release-cli:v0.4.0
|
||||||
|
rules:
|
||||||
|
- if: "$CI_COMMIT_TAG"
|
||||||
|
script:
|
||||||
|
- |
|
||||||
|
release-cli create --name "$CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG \
|
||||||
|
--assets-link "{\"name\":\"iPilot-${CI_COMMIT_TAG}-darwin-amd64\",\"url\":\"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/iPilot/${CI_COMMIT_TAG}/iPilot-${CI_COMMIT_TAG}-darwin-amd64\"}" \
|
||||||
|
--assets-link "{\"name\":\"iPilot-${CI_COMMIT_TAG}-darwin-arm64\",\"url\":\"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/iPilot/${CI_COMMIT_TAG}/iPilot-${CI_COMMIT_TAG}-darwin-arm64\"}" \
|
||||||
|
--assets-link "{\"name\":\"iPilot-${CI_COMMIT_TAG}-linux-amd64\",\"url\":\"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/iPilot/${CI_COMMIT_TAG}/iPilot-${CI_COMMIT_TAG}-linux-amd64\"}" \
|
||||||
|
--assets-link "{\"name\":\"iPilot-${CI_COMMIT_TAG}-win-amd64.exe\",\"url\":\"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/iPilot/${CI_COMMIT_TAG}/iPilot-${CI_COMMIT_TAG}-win-amd64.exe\"}" \
|
||||||
|
--assets-link "{\"name\":\"iPilot-${CI_COMMIT_TAG}-win-x86.exe\",\"url\":\"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/iPilot/${CI_COMMIT_TAG}/iPilot-${CI_COMMIT_TAG}-win-x86.exe\"}"
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
FROM golang:1.16-alpine as build
|
FROM golang:1.17-alpine as build
|
||||||
WORKDIR /go/src/app
|
WORKDIR /go/src/app
|
||||||
COPY . /go/src/app
|
COPY . /go/src/app
|
||||||
RUN CGO_ENABLED=0 go build -o /go/bin/app
|
RUN CGO_ENABLED=0 go build -o /go/bin/app
|
||||||
|
|
||||||
FROM gcr.io/distroless/base-debian10
|
FROM gcr.io/distroless/base-debian10
|
||||||
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/luketainton/iPilot"
|
||||||
COPY --from=build /go/bin/app /
|
COPY --from=build /go/bin/app /
|
||||||
CMD ["/app"]
|
CMD ["/app"]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2021 Luke Tainton
|
Copyright (c) 2022 Luke Tainton
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -16,5 +16,11 @@ Here are some ways that you can run the script:
|
|||||||
| `./iPilot -i google.com` | Run against the domain name `google.com` |
|
| `./iPilot -i google.com` | Run against the domain name `google.com` |
|
||||||
| `./iPilot -i google.com -p` | Run against the domain name `google.com` and lists BGP prefixes |
|
| `./iPilot -i google.com -p` | Run against the domain name `google.com` and lists BGP prefixes |
|
||||||
|
|
||||||
|
## Support
|
||||||
|
For support please open an issue on [GitLab](https://gitlab.com/luketainton/iPilot) or email [ipilot@help.tainton.uk](mailto:ipilot@help.tainton.uk).
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
This script runs thanks to the APIs provided by [IP-API](http://ip-api.com) and [HackerTarget](https://hackertarget.com/as-ip-lookup).
|
This script runs thanks to the APIs provided by [IP-API](http://ip-api.com) and [HackerTarget](https://hackertarget.com/as-ip-lookup).
|
||||||
|
|
||||||
|
## MOVED TO GITLAB
|
||||||
|
This repository has moved to [GitLab](https://gitlab.com/luketainton/iPilot). All future commits will be mirrored back to GitHub, but changes will only be accepted on the GitLab repository.
|
||||||
Reference in New Issue
Block a user