Skip to content

Commit

Permalink
Test o5logon
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio André <dev@claudioandre.slmail.me>
  • Loading branch information
claudioandre-br committed Dec 8, 2024
1 parent af043dd commit 37f20ef
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 454 deletions.
148 changes: 22 additions & 126 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,145 +1,41 @@
version: 2
jobs:
common_linux: &common_linux
docker:
- image: ghcr.io/openwall/john-ci:fedora.32
steps:
- checkout
- run:
name: Building JtR
command: .circleci/circle-ci.sh BUILD
- run:
name: Testing JtR
command: .circleci/circle-ci.sh TEST

wine-32bits:
<<: *common_linux
docker:
- image: ghcr.io/openwall/john-ci:fedora.30
environment:
TARGET_ARCH: "i686"
WINE: "wine"
OMP_NUM_THREADS: 2

wine-64bits:
<<: *common_linux
docker:
- image: ghcr.io/openwall/john-ci:fedora.32
environment:
TARGET_ARCH: "x86_64"
WINE: "wine"
OMP_NUM_THREADS: 2

no-plugs:
<<: *common_linux
docker:
- image: ghcr.io/openwall/john-ci:opencl
environment:
OMP_NUM_THREADS: 2
PLUGS: "none"
UNIT_TESTS: "yes"
BUILD_OPTS: "--enable-werror CPPFLAGS=-DDYNAMIC_DISABLED"

encoding-cpu:
<<: *common_linux
docker:
- image: ghcr.io/openwall/john-ci:fedora.latest
environment:
OMP_NUM_THREADS: 2
ENCODING_TEST: "cpu"

encoding-opencl:
<<: *common_linux
docker:
- image: ghcr.io/openwall/john-ci:opencl18
environment:
OMP_NUM_THREADS: 2
ENCODING_TEST: "opencl"

asan:
<<: *common_linux
docker:
- image: ghcr.io/openwall/john-ci:fedora.latest
environment:
OMP_NUM_THREADS: 2
ASAN_TEST: "yes"
BUILD_OPTS: "--enable-asan --disable-opencl"

test-full:
<<: *common_linux
docker:
- image: ghcr.io/openwall/john-ci:fedora.latest
environment:
ASAN_TEST: "yes"
FULL_TEST: "yes"
BUILD_OPTS: "--enable-asan --disable-openmp --disable-opencl"

fast-formats-omp:
<<: *common_linux
docker:
- image: ghcr.io/openwall/john-ci:fedora.latest
environment:
OMP_NUM_THREADS: 2
ASAN_TEST: "yes"
FULL_TEST: "yes"
BUILD_OPTS: "--enable-asan --enable-openmp-for-fast-formats --disable-opencl"

fast-formats-omp-x-non-SIMD:
<<: *common_linux
docker:
- image: ghcr.io/openwall/john-ci:fedora.latest
environment:
OMP_NUM_THREADS: 2
ASAN_TEST: "yes"
FULL_TEST: "yes"
BUILD_OPTS: "--enable-asan --enable-openmp-for-fast-formats --disable-simd --disable-opencl"

arm:
test:
machine:
image: ubuntu-2204:current
environment:
DEBIAN_FRONTEND: "noninteractive"
resource_class: arm.medium
steps:
- checkout
- run:
name: Preparing
command: |
uname -a
sudo apt update && sudo apt install -y zlib1g-dev libgmp-dev libpcap-dev libbz2-dev
sudo apt update && sudo apt install -y snapd
- run:
name: Building JtR
command: .circleci/circle-ci.sh BUILD
- run:
name: Testing JtR
command: .circleci/circle-ci.sh TEST
command: |
cat /proc/cpuinfo
echo '$o5logon$C35A36EA7FF7293EF828B2BD5A2830CA28A57BF621EAE14B605D41A88FC2CF7EFE7C73495FB22F06D6D98317D63DDA71*406813CBAEED2FD4AD23' > ~/o5logon.hash
sudo apt-get -qq update
sudo apt-get install -y snapd
sudo snap refresh john-the-ripper --revision=686 # YASM
sleep 5
OMP_NUM_THREADS=$(nproc --all) john --test=10 --format=o5logon; sleep 5
john --test=10 --format=o5logon; sleep 5
john ~/o5logon.hash --incremental --max-run=100; sleep 5
john ~/o5logon.hash --incremental --max-run=100 --fork=$(nproc); sleep 5
sudo snap refresh john-the-ripper --revision=688 # mbed (Intrinsics)
sleep 5
OMP_NUM_THREADS=$(nproc --all) john --test=10 --format=o5logon; sleep 5
john --test=10 --format=o5logon; sleep 5
john ~/o5logon.hash --incremental --max-run=100; sleep 5
john ~/o5logon.hash --incremental --max-run=100 --fork=$(nproc); sleep 5
workflows:
version: 2
build:
jobs:
- asan
- arm
- encoding-cpu
- wine-64bits
- no-plugs

- encoding-opencl:
requires:
- encoding-cpu
- wine-32bits:
requires:
- wine-64bits

- more-tests:
type: approval

- test-full:
requires:
- more-tests
- fast-formats-omp:
requires:
- more-tests
- fast-formats-omp-x-non-SIMD:
requires:
- more-tests
- test
Loading

0 comments on commit 37f20ef

Please sign in to comment.