Fixes
This commit is contained in:
commit
631be7af32
1097 files changed
+50845
-20978
No files matched your search
+393
-190
@@ -4,217 +4,395 @@
|
||||
# On Proxspace 3.3 or less, you need to install cmake:
|
||||
# pacman -S mingw-w64-x86_64-cmake
|
||||
# /mingw64/bin/cmake -G"MSYS Makefiles" ..
|
||||
#
|
||||
# Android cross-compilation:
|
||||
# cmake \
|
||||
# -DCMAKE_TOOLCHAIN_FILE=<path-to-your-android-ndk>/build/cmake/android.toolchain.cmake \
|
||||
# -DANDROID_ABI=armeabi-v7a \
|
||||
# -DANDROID_NATIVE_API_LEVEL=android-19 \
|
||||
# -DSKIPBT=1 -DSKIPPYTHON=1 -DSKIPPTHREAD=1 ..
|
||||
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(proxmark3)
|
||||
SET (PM3_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/..)
|
||||
|
||||
if(CMAKE_VERSION VERSION_LESS "3.7.0")
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
endif()
|
||||
|
||||
if(APPLE AND EXISTS /usr/local/opt/qt5)
|
||||
# Homebrew installs Qt5 (up to at least 5.11.0) in
|
||||
# /usr/local/qt5. Ensure that it can be found by CMake
|
||||
# since it is not in the default /usr/local prefix.
|
||||
# Add it to PATHS so that it doesn't override the
|
||||
# CMAKE_PREFIX_PATH environment variable.
|
||||
# QT_FIND_PACKAGE_OPTIONS should be passed to find_package,
|
||||
# e.g. find_package(Qt5Core ${QT_FIND_PACKAGE_OPTIONS})
|
||||
list(APPEND QT_FIND_PACKAGE_OPTIONS PATHS /usr/local/opt/qt5)
|
||||
endif()
|
||||
set(QT_PACKAGELIST
|
||||
Qt5Core
|
||||
Qt5Widgets
|
||||
Qt5Gui
|
||||
)
|
||||
set(Qt5_FOUND ON)
|
||||
foreach(_qt_package IN LISTS QT_PACKAGELIST)
|
||||
find_package(${_qt_package} QUIET ${QT_FIND_PACKAGE_OPTIONS})
|
||||
if(NOT ${_qt_package}_FOUND)
|
||||
set(Qt5_FOUND OFF)
|
||||
endif(NOT ${_qt_package}_FOUND)
|
||||
endforeach()
|
||||
if (NOT SKIPQT EQUAL 1)
|
||||
if(APPLE AND EXISTS /usr/local/opt/qt5)
|
||||
# Homebrew installs Qt5 (up to at least 5.11.0) in
|
||||
# /usr/local/qt5. Ensure that it can be found by CMake
|
||||
# since it is not in the default /usr/local prefix.
|
||||
# Add it to PATHS so that it doesn't override the
|
||||
# CMAKE_PREFIX_PATH environment variable.
|
||||
# QT_FIND_PACKAGE_OPTIONS should be passed to find_package,
|
||||
# e.g. find_package(Qt5Core ${QT_FIND_PACKAGE_OPTIONS})
|
||||
list(APPEND QT_FIND_PACKAGE_OPTIONS PATHS /usr/local/opt/qt5)
|
||||
endif(APPLE AND EXISTS /usr/local/opt/qt5)
|
||||
set(QT_PACKAGELIST
|
||||
Qt5Core
|
||||
Qt5Widgets
|
||||
Qt5Gui
|
||||
)
|
||||
set(Qt5_FOUND ON)
|
||||
foreach(_qt_package IN LISTS QT_PACKAGELIST)
|
||||
find_package(${_qt_package} QUIET ${QT_FIND_PACKAGE_OPTIONS})
|
||||
set(Qt5_LIBRARIES ${${_qt_package}_LIBRARIES} ${Qt5_LIBRARIES})
|
||||
if(NOT ${_qt_package}_FOUND)
|
||||
set(Qt5_FOUND OFF)
|
||||
endif(NOT ${_qt_package}_FOUND)
|
||||
endforeach()
|
||||
endif (NOT SKIPQT EQUAL 1)
|
||||
|
||||
SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
find_package(PkgConfig)
|
||||
if (NOT SKIPBT EQUAL 1)
|
||||
pkg_search_module(BLUEZ QUIET bluez)
|
||||
endif (NOT SKIPBT EQUAL 1)
|
||||
|
||||
add_subdirectory(deps)
|
||||
if (NOT SKIPPYTHON EQUAL 1)
|
||||
pkg_search_module(PYTHON3 QUIET python3)
|
||||
pkg_search_module(PYTHON3EMBED QUIET python3-embed)
|
||||
endif (NOT SKIPPYTHON EQUAL 1)
|
||||
|
||||
# If build on android cross, we need to init source and build.
|
||||
if (ANDROID)
|
||||
set(CFLAGS_EXTERNAL_LIB CFLAGS=--target=${CMAKE_C_COMPILER_TARGET})
|
||||
include(ExternalProject)
|
||||
endif (ANDROID)
|
||||
|
||||
if (NOT SKIPREADLINE EQUAL 1)
|
||||
if (APPLE)
|
||||
find_path(READLINE_INCLUDE_DIRS readline/readline.h /usr/local/opt/readline/include /opt/local/include /opt/include /usr/local/include /usr/include NO_DEFAULT_PATH)
|
||||
find_library(READLINE_LIBRARIES readline /usr/local/opt/readline/lib /opt/local/lib /opt/lib /usr/local/lib /usr/lib NO_DEFAULT_PATH)
|
||||
endif (APPLE)
|
||||
if (ANDROID)
|
||||
ExternalProject_Add(ncurses
|
||||
URL http://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz
|
||||
PREFIX deps/ncurses
|
||||
DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/deps/ncurses
|
||||
CONFIGURE_COMMAND ./configure CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} LD=${CMAKE_C_COMPILER} AR=${CMAKE_AR} RANLIB=${CMAKE_RANLIB} ${CFLAGS_EXTERNAL_LIB} --host=arm
|
||||
BUILD_IN_SOURCE ON
|
||||
BUILD_COMMAND make -j2 libs
|
||||
INSTALL_COMMAND ""
|
||||
LOG_DOWNLOAD ON
|
||||
)
|
||||
ExternalProject_Add_StepTargets(ncurses configure build install)
|
||||
|
||||
ExternalProject_Add(readline
|
||||
URL ftp://ftp.gnu.org/gnu/readline/readline-7.0.tar.gz
|
||||
PREFIX deps/readline
|
||||
DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/deps/readline
|
||||
CONFIGURE_COMMAND ./configure CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} LD=${CMAKE_C_COMPILER} AR=${CMAKE_AR} RANLIB=${CMAKE_RANLIB} ${CFLAGS_EXTERNAL_LIB} --host=arm --enable-static
|
||||
BUILD_IN_SOURCE ON
|
||||
BUILD_COMMAND make -j2
|
||||
INSTALL_COMMAND ""
|
||||
LOG_DOWNLOAD ON
|
||||
)
|
||||
ExternalProject_Add_StepTargets(readline configure build install)
|
||||
set(READLINE_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/deps/readline/src/)
|
||||
set(READLINE_LIBRARIES ${CMAKE_CURRENT_BINARY_DIR}/deps/readline/src/readline/libreadline.a ${CMAKE_CURRENT_BINARY_DIR}/deps/ncurses/src/ncurses/lib/libncurses.a)
|
||||
else (ANDROID)
|
||||
find_path(READLINE_INCLUDE_DIRS readline/readline.h)
|
||||
find_library(READLINE_LIBRARIES readline)
|
||||
endif (ANDROID)
|
||||
if (READLINE_INCLUDE_DIRS AND READLINE_LIBRARIES)
|
||||
set(READLINE_FOUND ON)
|
||||
endif (READLINE_INCLUDE_DIRS AND READLINE_LIBRARIES)
|
||||
endif (NOT SKIPREADLINE EQUAL 1)
|
||||
|
||||
if(ANDROID)
|
||||
set(BZIP2_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/deps/bzip2/src/bzip2)
|
||||
ExternalProject_Add(bzip2
|
||||
GIT_REPOSITORY https://android.googlesource.com/platform/external/bzip2
|
||||
GIT_TAG platform-tools-30.0.2
|
||||
PREFIX deps/bzip2
|
||||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/deps/bzip2
|
||||
CONFIGURE_COMMAND mkdir -p ${BZIP2_BUILD_DIR} && git archive --format tar HEAD | tar -C ${BZIP2_BUILD_DIR} -x
|
||||
BUILD_IN_SOURCE ON
|
||||
BUILD_COMMAND make -C ${BZIP2_BUILD_DIR} -j4 CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} LD=${CMAKE_C_COMPILER} AR=${CMAKE_AR} RANLIB=${CMAKE_RANLIB} ${CFLAGS_EXTERNAL_LIB} libbz2.a
|
||||
INSTALL_COMMAND ""
|
||||
LOG_DOWNLOAD ON
|
||||
)
|
||||
ExternalProject_Add_StepTargets(bzip2 configure build install)
|
||||
set(BZIP2_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/deps/bzip2/src/bzip2)
|
||||
set(BZIP2_LIBRARIES ${CMAKE_CURRENT_BINARY_DIR}/deps/bzip2/src/bzip2/libbz2.a)
|
||||
else()
|
||||
set(BZIP2_LIBRARIES bz2)
|
||||
endif(ANDROID)
|
||||
if (BZIP2_LIBRARIES)
|
||||
set(BZIP2_FOUND ON)
|
||||
endif (BZIP2_LIBRARIES)
|
||||
|
||||
add_subdirectory(${PM3_ROOT}/client/deps deps)
|
||||
|
||||
set (TARGET_SOURCES
|
||||
src/proxmark3.c
|
||||
../common/commonutil.c
|
||||
../common/util_posix.c
|
||||
../common/parity.c
|
||||
../common/bucketsort.c
|
||||
../common/crapto1/crapto1.c
|
||||
../common/crapto1/crypto1.c
|
||||
../common/crc.c
|
||||
../common/crc16.c
|
||||
../common/crc32.c
|
||||
../common/crc64.c
|
||||
../common/lfdemod.c
|
||||
../common/legic_prng.c
|
||||
../common/iso15693tools.c
|
||||
../common/cardhelper.c
|
||||
../common/generator.c
|
||||
src/crypto/asn1dump.c
|
||||
src/crypto/asn1utils.c
|
||||
src/crypto/libpcrypto.c
|
||||
src/emv/test/cda_test.c
|
||||
src/emv/test/crypto_test.c
|
||||
src/emv/test/cryptotest.c
|
||||
src/emv/test/dda_test.c
|
||||
src/emv/test/sda_test.c
|
||||
src/emv/apduinfo.c
|
||||
src/emv/cmdemv.c
|
||||
src/emv/crypto.c
|
||||
src/emv/crypto_polarssl.c
|
||||
src/emv/dol.c
|
||||
src/emv/dump.c
|
||||
src/emv/emv_pk.c
|
||||
src/emv/emv_pki.c
|
||||
src/emv/emv_pki_priv.c
|
||||
src/emv/emv_roca.c
|
||||
src/emv/emv_tags.c
|
||||
src/emv/emvcore.c
|
||||
src/emv/emvjson.c
|
||||
src/emv/tlv.c
|
||||
src/fido/additional_ca.c
|
||||
src/fido/cbortools.c
|
||||
src/fido/cose.c
|
||||
src/fido/fidocore.c
|
||||
src/loclass/cipher.c
|
||||
src/loclass/cipherutils.c
|
||||
src/loclass/elite_crack.c
|
||||
src/loclass/hash1_brute.c
|
||||
src/loclass/ikeys.c
|
||||
src/mifare/mad.c
|
||||
src/mifare/mfkey.c
|
||||
src/mifare/mifare4.c
|
||||
src/mifare/mifaredefault.c
|
||||
src/mifare/mifarehost.c
|
||||
src/mifare/ndef.c
|
||||
src/mifare/desfire_crypto.c
|
||||
src/uart/uart_posix.c
|
||||
src/uart/uart_win32.c
|
||||
src/ui/overlays.ui
|
||||
src/aidsearch.c
|
||||
src/cmdanalyse.c
|
||||
src/cmdcrc.c
|
||||
src/cmddata.c
|
||||
src/cmdflashmem.c
|
||||
src/cmdflashmemspiffs.c
|
||||
src/cmdhf.c
|
||||
src/cmdhf14a.c
|
||||
src/cmdhf14b.c
|
||||
src/cmdhf15.c
|
||||
src/cmdhfcryptorf.c
|
||||
src/cmdhfepa.c
|
||||
src/cmdhffelica.c
|
||||
src/cmdhffido.c
|
||||
src/cmdhficlass.c
|
||||
src/cmdhflegic.c
|
||||
src/cmdhflist.c
|
||||
src/cmdhflto.c
|
||||
src/cmdhfmf.c
|
||||
src/cmdhfmfdes.c
|
||||
src/cmdhfmfhard.c
|
||||
src/cmdhfmfp.c
|
||||
src/cmdhfmfu.c
|
||||
src/cmdhfthinfilm.c
|
||||
src/cmdhftopaz.c
|
||||
src/cmdhw.c
|
||||
src/cmdlf.c
|
||||
src/cmdlfawid.c
|
||||
src/cmdlfcotag.c
|
||||
src/cmdlfem4x.c
|
||||
src/cmdlffdx.c
|
||||
src/cmdlfgallagher.c
|
||||
src/cmdlfguard.c
|
||||
src/cmdlfhid.c
|
||||
src/cmdlfhitag.c
|
||||
src/cmdlfindala.c
|
||||
src/cmdlfio.c
|
||||
src/cmdlfjablotron.c
|
||||
src/cmdlfkeri.c
|
||||
src/cmdlfmotorola.c
|
||||
src/cmdlfnedap.c
|
||||
src/cmdlfnexwatch.c
|
||||
src/cmdlfnoralsy.c
|
||||
src/cmdlfpac.c
|
||||
src/cmdlfparadox.c
|
||||
src/cmdlfpcf7931.c
|
||||
src/cmdlfpresco.c
|
||||
src/cmdlfpyramid.c
|
||||
src/cmdlfsecurakey.c
|
||||
src/cmdlft55xx.c
|
||||
src/cmdlfti.c
|
||||
src/cmdlfverichip.c
|
||||
src/cmdlfviking.c
|
||||
src/cmdlfvisa2000.c
|
||||
src/cmdmain.c
|
||||
src/cmdparser.c
|
||||
src/cmdscript.c
|
||||
src/cmdsmartcard.c
|
||||
src/cmdtrace.c
|
||||
src/cmdusart.c
|
||||
src/cmdwiegand.c
|
||||
src/comms.c
|
||||
src/fileutils.c
|
||||
src/flash.c
|
||||
src/graph.c
|
||||
src/preferences.c
|
||||
src/pm3_binlib.c
|
||||
src/pm3_bitlib.c
|
||||
src/prng.c
|
||||
src/scandir.c
|
||||
src/scripting.c
|
||||
src/tea.c
|
||||
src/ui.c
|
||||
src/util.c
|
||||
src/whereami.c
|
||||
src/wiegand_formats.c
|
||||
src/wiegand_formatutils.c
|
||||
${PM3_ROOT}/common/commonutil.c
|
||||
${PM3_ROOT}/common/util_posix.c
|
||||
${PM3_ROOT}/common/parity.c
|
||||
${PM3_ROOT}/common/bucketsort.c
|
||||
${PM3_ROOT}/common/crapto1/crapto1.c
|
||||
${PM3_ROOT}/common/crapto1/crypto1.c
|
||||
${PM3_ROOT}/common/crc.c
|
||||
${PM3_ROOT}/common/crc16.c
|
||||
${PM3_ROOT}/common/crc32.c
|
||||
${PM3_ROOT}/common/crc64.c
|
||||
${PM3_ROOT}/common/lfdemod.c
|
||||
${PM3_ROOT}/common/legic_prng.c
|
||||
${PM3_ROOT}/common/iso15693tools.c
|
||||
${PM3_ROOT}/common/cardhelper.c
|
||||
${PM3_ROOT}/common/generator.c
|
||||
${PM3_ROOT}/client/src/crypto/asn1dump.c
|
||||
${PM3_ROOT}/client/src/crypto/asn1utils.c
|
||||
${PM3_ROOT}/client/src/crypto/libpcrypto.c
|
||||
${PM3_ROOT}/client/src/emv/test/cda_test.c
|
||||
${PM3_ROOT}/client/src/emv/test/crypto_test.c
|
||||
${PM3_ROOT}/client/src/emv/test/cryptotest.c
|
||||
${PM3_ROOT}/client/src/emv/test/dda_test.c
|
||||
${PM3_ROOT}/client/src/emv/test/sda_test.c
|
||||
${PM3_ROOT}/client/src/emv/apduinfo.c
|
||||
${PM3_ROOT}/client/src/emv/cmdemv.c
|
||||
${PM3_ROOT}/client/src/emv/crypto.c
|
||||
${PM3_ROOT}/client/src/emv/crypto_polarssl.c
|
||||
${PM3_ROOT}/client/src/emv/dol.c
|
||||
${PM3_ROOT}/client/src/emv/dump.c
|
||||
${PM3_ROOT}/client/src/emv/emv_pk.c
|
||||
${PM3_ROOT}/client/src/emv/emv_pki.c
|
||||
${PM3_ROOT}/client/src/emv/emv_pki_priv.c
|
||||
${PM3_ROOT}/client/src/emv/emv_roca.c
|
||||
${PM3_ROOT}/client/src/emv/emv_tags.c
|
||||
${PM3_ROOT}/client/src/emv/emvcore.c
|
||||
${PM3_ROOT}/client/src/emv/emvjson.c
|
||||
${PM3_ROOT}/client/src/emv/tlv.c
|
||||
${PM3_ROOT}/client/src/fido/additional_ca.c
|
||||
${PM3_ROOT}/client/src/fido/cbortools.c
|
||||
${PM3_ROOT}/client/src/fido/cose.c
|
||||
${PM3_ROOT}/client/src/fido/fidocore.c
|
||||
${PM3_ROOT}/client/src/loclass/cipher.c
|
||||
${PM3_ROOT}/client/src/loclass/cipherutils.c
|
||||
${PM3_ROOT}/client/src/loclass/elite_crack.c
|
||||
${PM3_ROOT}/client/src/loclass/hash1_brute.c
|
||||
${PM3_ROOT}/client/src/loclass/ikeys.c
|
||||
${PM3_ROOT}/client/src/mifare/mad.c
|
||||
${PM3_ROOT}/client/src/mifare/mfkey.c
|
||||
${PM3_ROOT}/client/src/mifare/mifare4.c
|
||||
${PM3_ROOT}/client/src/mifare/mifaredefault.c
|
||||
${PM3_ROOT}/client/src/mifare/mifarehost.c
|
||||
${PM3_ROOT}/client/src/mifare/ndef.c
|
||||
${PM3_ROOT}/client/src/mifare/desfire_crypto.c
|
||||
${PM3_ROOT}/client/src/uart/uart_posix.c
|
||||
${PM3_ROOT}/client/src/uart/uart_win32.c
|
||||
${PM3_ROOT}/client/src/ui/overlays.ui
|
||||
${PM3_ROOT}/client/src/aidsearch.c
|
||||
${PM3_ROOT}/client/src/cmdanalyse.c
|
||||
${PM3_ROOT}/client/src/cmdcrc.c
|
||||
${PM3_ROOT}/client/src/cmddata.c
|
||||
${PM3_ROOT}/client/src/cmdflashmem.c
|
||||
${PM3_ROOT}/client/src/cmdflashmemspiffs.c
|
||||
${PM3_ROOT}/client/src/cmdhf.c
|
||||
${PM3_ROOT}/client/src/cmdhf14a.c
|
||||
${PM3_ROOT}/client/src/cmdhf14b.c
|
||||
${PM3_ROOT}/client/src/cmdhf15.c
|
||||
${PM3_ROOT}/client/src/cmdhfcryptorf.c
|
||||
${PM3_ROOT}/client/src/cmdhfepa.c
|
||||
${PM3_ROOT}/client/src/cmdhffelica.c
|
||||
${PM3_ROOT}/client/src/cmdhffido.c
|
||||
${PM3_ROOT}/client/src/cmdhficlass.c
|
||||
${PM3_ROOT}/client/src/cmdhflegic.c
|
||||
${PM3_ROOT}/client/src/cmdhflist.c
|
||||
${PM3_ROOT}/client/src/cmdhflto.c
|
||||
${PM3_ROOT}/client/src/cmdhfmf.c
|
||||
${PM3_ROOT}/client/src/cmdhfmfdes.c
|
||||
${PM3_ROOT}/client/src/cmdhfmfhard.c
|
||||
${PM3_ROOT}/client/src/cmdhfmfp.c
|
||||
${PM3_ROOT}/client/src/cmdhfmfu.c
|
||||
${PM3_ROOT}/client/src/cmdhfthinfilm.c
|
||||
${PM3_ROOT}/client/src/cmdhftopaz.c
|
||||
${PM3_ROOT}/client/src/cmdhw.c
|
||||
${PM3_ROOT}/client/src/cmdlf.c
|
||||
${PM3_ROOT}/client/src/cmdlfawid.c
|
||||
${PM3_ROOT}/client/src/cmdlfcotag.c
|
||||
${PM3_ROOT}/client/src/cmdlfem4x.c
|
||||
${PM3_ROOT}/client/src/cmdlffdx.c
|
||||
${PM3_ROOT}/client/src/cmdlfgallagher.c
|
||||
${PM3_ROOT}/client/src/cmdlfguard.c
|
||||
${PM3_ROOT}/client/src/cmdlfhid.c
|
||||
${PM3_ROOT}/client/src/cmdlfhitag.c
|
||||
${PM3_ROOT}/client/src/cmdlfindala.c
|
||||
${PM3_ROOT}/client/src/cmdlfio.c
|
||||
${PM3_ROOT}/client/src/cmdlfjablotron.c
|
||||
${PM3_ROOT}/client/src/cmdlfkeri.c
|
||||
${PM3_ROOT}/client/src/cmdlfmotorola.c
|
||||
${PM3_ROOT}/client/src/cmdlfnedap.c
|
||||
${PM3_ROOT}/client/src/cmdlfnexwatch.c
|
||||
${PM3_ROOT}/client/src/cmdlfnoralsy.c
|
||||
${PM3_ROOT}/client/src/cmdlfpac.c
|
||||
${PM3_ROOT}/client/src/cmdlfparadox.c
|
||||
${PM3_ROOT}/client/src/cmdlfpcf7931.c
|
||||
${PM3_ROOT}/client/src/cmdlfpresco.c
|
||||
${PM3_ROOT}/client/src/cmdlfpyramid.c
|
||||
${PM3_ROOT}/client/src/cmdlfsecurakey.c
|
||||
${PM3_ROOT}/client/src/cmdlft55xx.c
|
||||
${PM3_ROOT}/client/src/cmdlfti.c
|
||||
${PM3_ROOT}/client/src/cmdlfverichip.c
|
||||
${PM3_ROOT}/client/src/cmdlfviking.c
|
||||
${PM3_ROOT}/client/src/cmdlfvisa2000.c
|
||||
${PM3_ROOT}/client/src/cmdmain.c
|
||||
${PM3_ROOT}/client/src/cmdparser.c
|
||||
${PM3_ROOT}/client/src/cmdscript.c
|
||||
${PM3_ROOT}/client/src/cmdsmartcard.c
|
||||
${PM3_ROOT}/client/src/cmdtrace.c
|
||||
${PM3_ROOT}/client/src/cmdusart.c
|
||||
${PM3_ROOT}/client/src/cmdwiegand.c
|
||||
${PM3_ROOT}/client/src/comms.c
|
||||
${PM3_ROOT}/client/src/fileutils.c
|
||||
${PM3_ROOT}/client/src/flash.c
|
||||
${PM3_ROOT}/client/src/graph.c
|
||||
${PM3_ROOT}/client/src/jansson_path.c
|
||||
${PM3_ROOT}/client/src/preferences.c
|
||||
${PM3_ROOT}/client/src/pm3_binlib.c
|
||||
${PM3_ROOT}/client/src/pm3_bitlib.c
|
||||
${PM3_ROOT}/client/src/prng.c
|
||||
${PM3_ROOT}/client/src/scandir.c
|
||||
${PM3_ROOT}/client/src/scripting.c
|
||||
${PM3_ROOT}/client/src/tea.c
|
||||
${PM3_ROOT}/client/src/ui.c
|
||||
${PM3_ROOT}/client/src/util.c
|
||||
${PM3_ROOT}/client/src/wiegand_formats.c
|
||||
${PM3_ROOT}/client/src/wiegand_formatutils.c
|
||||
${CMAKE_BINARY_DIR}/version.c
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_BINARY_DIR}/version.c
|
||||
COMMAND sh ${PM3_ROOT}/tools/mkversion.sh > ${CMAKE_BINARY_DIR}/version.c || perl ${PM3_ROOT}/tools/mkversion.pl > ${CMAKE_BINARY_DIR}/version.c || ${CMAKE_COMMAND} -E copy ${PM3_ROOT}/common/default_version.c ${CMAKE_BINARY_DIR}/version.c
|
||||
DEPENDS ${PM3_ROOT}/common/default_version.c
|
||||
)
|
||||
|
||||
set(ADDITIONAL_SRC "")
|
||||
set(ADDITIONAL_LNK "")
|
||||
|
||||
set(ADDITIONAL_DIRS "")
|
||||
set(ADDITIONAL_LNKDIRS "")
|
||||
set(X86_CPUS x86 x86_64 i686)
|
||||
|
||||
message(STATUS "CMAKE_SYSTEM_PROCESSOR := ${CMAKE_SYSTEM_PROCESSOR}")
|
||||
|
||||
if (APPLE)
|
||||
message("Apple device detected.")
|
||||
set(ADDITIONAL_SRC src/util_darwin.h src/util_darwin.m ${ADDITIONAL_SRC})
|
||||
set(ADDITIONAL_SRC ${PM3_ROOT}/client/src/util_darwin.h ${PM3_ROOT}/client/src/util_darwin.m ${ADDITIONAL_SRC})
|
||||
set(ADDITIONAL_LNK "-framework Foundation" "-framework AppKit")
|
||||
endif (APPLE)
|
||||
|
||||
if (Qt5_FOUND)
|
||||
message("Qt5 library found, building gui :)")
|
||||
if ((NOT SKIPQT EQUAL 1) AND (Qt5_FOUND))
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
set (TARGET_SOURCES
|
||||
src/proxgui.cpp
|
||||
src/proxguiqt.cpp
|
||||
${PM3_ROOT}/client/src/proxgui.cpp
|
||||
${PM3_ROOT}/client/src/proxguiqt.cpp
|
||||
${TARGET_SOURCES})
|
||||
|
||||
add_definitions("-DHAVE_GUI")
|
||||
set(ADDITIONAL_LNK Qt5::Core Qt5::Widgets Qt5::Gui ${ADDITIONAL_LNK})
|
||||
else (Qt5_FOUND)
|
||||
message("Qt5 library not found, not building gui")
|
||||
set(ADDITIONAL_LNK ${Qt5_LIBRARIES} ${ADDITIONAL_LNK})
|
||||
else ((NOT SKIPQT EQUAL 1) AND (Qt5_FOUND))
|
||||
set(TARGET_SOURCES
|
||||
src/guidummy.cpp
|
||||
${PM3_ROOT}/client/src/guidummy.cpp
|
||||
${TARGET_SOURCES})
|
||||
endif (Qt5_FOUND)
|
||||
endif ((NOT SKIPQT EQUAL 1) AND (Qt5_FOUND))
|
||||
|
||||
add_executable(
|
||||
proxmark3
|
||||
if (NOT SKIPBT EQUAL 1)
|
||||
if (BLUEZ_FOUND)
|
||||
add_definitions("-DHAVE_BLUEZ")
|
||||
set(ADDITIONAL_LNK ${BLUEZ_LIBRARIES} ${ADDITIONAL_LNK})
|
||||
endif (BLUEZ_FOUND)
|
||||
endif(NOT SKIPBT EQUAL 1)
|
||||
|
||||
if (NOT SKIPPYTHON EQUAL 1)
|
||||
if (PYTHON3EMBED_FOUND)
|
||||
add_definitions(-DHAVE_PYTHON)
|
||||
set(ADDITIONAL_DIRS ${PYTHON3EMBED_INCLUDE_DIRS} ${ADDITIONAL_DIRS})
|
||||
set(ADDITIONAL_LNK ${PYTHON3EMBED_LIBRARIES} ${ADDITIONAL_LNK})
|
||||
set(ADDITIONAL_LNKDIRS ${PYTHON3EMBED_LIBRARY_DIRS} ${ADDITIONAL_LNKDIRS})
|
||||
elseif (PYTHON3_FOUND)
|
||||
add_definitions(-DHAVE_PYTHON)
|
||||
set(ADDITIONAL_DIRS ${PYTHON3_INCLUDE_DIRS} ${ADDITIONAL_DIRS})
|
||||
set(ADDITIONAL_LNK ${PYTHON3_LIBRARIES} ${ADDITIONAL_LNK})
|
||||
set(ADDITIONAL_LNKDIRS ${PYTHON3_LIBRARY_DIRS} ${ADDITIONAL_LNKDIRS})
|
||||
endif (PYTHON3EMBED_FOUND)
|
||||
endif (NOT SKIPPYTHON EQUAL 1)
|
||||
|
||||
if (NOT SKIPREADLINE EQUAL 1)
|
||||
if (READLINE_FOUND)
|
||||
add_definitions("-DHAVE_READLINE")
|
||||
set(ADDITIONAL_DIRS ${READLINE_INCLUDE_DIRS} ${ADDITIONAL_DIRS})
|
||||
set(ADDITIONAL_LNK ${READLINE_LIBRARIES} ${ADDITIONAL_LNK})
|
||||
endif (READLINE_FOUND)
|
||||
endif(NOT SKIPREADLINE EQUAL 1)
|
||||
if (BZIP2_FOUND)
|
||||
set(ADDITIONAL_DIRS ${BZIP2_INCLUDE_DIRS} ${ADDITIONAL_DIRS})
|
||||
set(ADDITIONAL_LNK ${BZIP2_LIBRARIES} ${ADDITIONAL_LNK})
|
||||
else (BZIP2_FOUND)
|
||||
message(FATAL_ERROR "Bzip2 not found")
|
||||
endif (BZIP2_FOUND)
|
||||
|
||||
message("===================================================================")
|
||||
if (SKIPQT EQUAL 1)
|
||||
message("GUI support: skipped")
|
||||
else (SKIPQT EQUAL 1)
|
||||
if (Qt5_FOUND)
|
||||
message("GUI support: QT5 found, enabled")
|
||||
else (Qt5_FOUND)
|
||||
message("GUI support: QT5 not found, disabled")
|
||||
endif (Qt5_FOUND)
|
||||
endif (SKIPQT EQUAL 1)
|
||||
|
||||
if (SKIPBT EQUAL 1)
|
||||
message("native BT support: skipped")
|
||||
else (SKIPBT EQUAL 1)
|
||||
if (BLUEZ_FOUND)
|
||||
message("native BT support: Bluez found, enabled")
|
||||
else (BLUEZ_FOUND)
|
||||
message("native BT support: Bluez not found, disabled")
|
||||
endif (BLUEZ_FOUND)
|
||||
endif(SKIPBT EQUAL 1)
|
||||
|
||||
if (SKIPPYTHON EQUAL 1)
|
||||
message("Python3 library: skipped")
|
||||
else (SKIPPYTHON EQUAL 1)
|
||||
if (PYTHON3EMBED_FOUND)
|
||||
message("Python3 library: Python3 embed found, enabled")
|
||||
elseif (PYTHON_FOUND)
|
||||
message("Python3 library: Python3 found, enabled")
|
||||
else (PYTHON3EMBED_FOUND)
|
||||
message("Python3 library: Python3 not found, disabled")
|
||||
endif (PYTHON3EMBED_FOUND)
|
||||
endif(SKIPPYTHON EQUAL 1)
|
||||
|
||||
if (SKIPREADLINE EQUAL 1)
|
||||
message("Readline library: skipped")
|
||||
else (SKIPREADLINE EQUAL 1)
|
||||
if (READLINE_FOUND)
|
||||
message("Readline library: enabled")
|
||||
else (READLINE_FOUND)
|
||||
message("Readline library: Readline not found, disabled")
|
||||
endif (READLINE_FOUND)
|
||||
endif(SKIPREADLINE EQUAL 1)
|
||||
message("===================================================================")
|
||||
|
||||
add_executable(proxmark3
|
||||
${PM3_ROOT}/client/src/proxmark3.c
|
||||
${TARGET_SOURCES}
|
||||
${ADDITIONAL_SRC}
|
||||
)
|
||||
|
||||
target_compile_options(proxmark3 PUBLIC -Wall -Werror -O3)
|
||||
if (ANDROID)
|
||||
if (NOT SKIPREADLINE EQUAL 1)
|
||||
add_dependencies(proxmark3 ncurses readline)
|
||||
endif (NOT SKIPREADLINE EQUAL 1)
|
||||
add_dependencies(proxmark3 bzip2)
|
||||
endif (ANDROID)
|
||||
|
||||
if (MINGW)
|
||||
# Mingw uses by default Microsoft printf, we want the GNU printf (e.g. for %z)
|
||||
@@ -228,34 +406,59 @@ if (MINGW)
|
||||
endif (MINGW)
|
||||
|
||||
target_include_directories(proxmark3 PRIVATE
|
||||
../common
|
||||
../common_fpga
|
||||
../include
|
||||
src
|
||||
${PM3_ROOT}/common
|
||||
${PM3_ROOT}/common_fpga
|
||||
${PM3_ROOT}/include
|
||||
${PM3_ROOT}/client/src
|
||||
${PM3_ROOT}/client/include
|
||||
${ADDITIONAL_DIRS}
|
||||
)
|
||||
|
||||
if (APPLE)
|
||||
set_target_properties(proxmark3 PROPERTIES LINK_FLAGS "-Wl,-F/Library/Frameworks, -L/usr/local/opt/readline/lib")
|
||||
set_target_properties(proxmark3 PROPERTIES COMPILE_FLAGS "-I/usr/local/opt/readline/include")
|
||||
else (APPLE)
|
||||
if (NOT APPLE)
|
||||
# required for Raspberry Pi, but breaks with clang (OSX). Need to be at the end of the linker line.
|
||||
set(ADDITIONAL_LNK ${ADDITIONAL_LNK} -Wl,--as-needed -latomic -Wl,--no-as-needed)
|
||||
endif (APPLE)
|
||||
endif (NOT APPLE)
|
||||
|
||||
|
||||
find_library(cliparser REQUIRED)
|
||||
find_library(jansson REQUIRED)
|
||||
find_library(tinycbor REQUIRED)
|
||||
find_library(lua REQUIRED)
|
||||
find_library(mbedtls REQUIRED)
|
||||
find_library(reveng REQUIRED)
|
||||
find_library(z REQUIRED)
|
||||
find_library(hardnested REQUIRED)
|
||||
find_library(pm3rrg_rdv4_cliparser REQUIRED)
|
||||
find_library(pm3rrg_rdv4_jansson REQUIRED)
|
||||
find_library(pm3rrg_rdv4_tinycbor REQUIRED)
|
||||
find_library(pm3rrg_rdv4_lua REQUIRED)
|
||||
find_library(pm3rrg_rdv4_mbedtls REQUIRED)
|
||||
find_library(pm3rrg_rdv4_reveng REQUIRED)
|
||||
find_library(pm3rrg_rdv4_hardnested REQUIRED)
|
||||
find_library(pm3rrg_rdv4_whereami REQUIRED)
|
||||
|
||||
target_link_libraries(proxmark3 PRIVATE readline pthread m mbedtls cliparser jansson lua tinycbor amiibo reveng z hardnested ${ADDITIONAL_LNK})
|
||||
target_link_libraries(proxmark3 PRIVATE
|
||||
m
|
||||
pm3rrg_rdv4_mbedtls
|
||||
pm3rrg_rdv4_cliparser
|
||||
pm3rrg_rdv4_jansson
|
||||
pm3rrg_rdv4_lua
|
||||
pm3rrg_rdv4_tinycbor
|
||||
pm3rrg_rdv4_amiibo
|
||||
pm3rrg_rdv4_reveng
|
||||
pm3rrg_rdv4_hardnested
|
||||
pm3rrg_rdv4_whereami
|
||||
${ADDITIONAL_LNK})
|
||||
|
||||
if (NOT SKIPPTHREAD EQUAL 1)
|
||||
target_link_libraries(proxmark3 PRIVATE pthread)
|
||||
endif (NOT SKIPPTHREAD EQUAL 1)
|
||||
|
||||
if (NOT SKIPPYTHON EQUAL 1)
|
||||
# OSX have a hard time compiling python3 dependency with older cmake.
|
||||
if (PYTHON3EMBED_FOUND OR PYTHON3_FOUND)
|
||||
if (NOT CMAKE_VERSION VERSION_LESS 3.13)
|
||||
target_link_directories(proxmark3 PRIVATE ${ADDITIONAL_LNKDIRS})
|
||||
elseif (APPLE)
|
||||
message( SEND_ERROR "Your CMAKE version is too old for Apple platform, please update to a version >=3.13" )
|
||||
endif (NOT CMAKE_VERSION VERSION_LESS 3.13)
|
||||
endif (PYTHON3EMBED_FOUND OR PYTHON3_FOUND)
|
||||
endif (NOT SKIPPYTHON EQUAL 1)
|
||||
|
||||
install(TARGETS proxmark3 DESTINATION "bin")
|
||||
install(DIRECTORY cmdscripts lualibs luascripts resources dictionaries DESTINATION "share/proxmark3")
|
||||
install(DIRECTORY cmdscripts lualibs luascripts pyscripts resources dictionaries DESTINATION "share/proxmark3")
|
||||
|
||||
add_custom_command(OUTPUT lualibs/pm3_cmd.lua
|
||||
COMMAND "awk -f pm3_cmd_h2lua.awk ../include/pm3_cmd.h > lualibs/pm3_cmd.lua"
|
||||
|
||||
+572
-264
@@ -4,26 +4,163 @@
|
||||
# the license.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
# reveng will compile without macros, but these may be useful:
|
||||
# Add -DBMPMACRO to use bitmap size constant macros (edit config.h)
|
||||
# Add -DNOFORCE to disable the -F switch
|
||||
# Add -DPRESETS to compile with preset models (edit config.h)
|
||||
|
||||
# Must be called before any Makefile include
|
||||
ROOT_DIR:=$(dir $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
include ../Makefile.defs
|
||||
|
||||
INSTALLBIN = proxmark3
|
||||
INSTALLSHARE = cmdscripts lualibs luascripts resources dictionaries
|
||||
INSTALLSHARE = cmdscripts lualibs luascripts pyscripts resources dictionaries
|
||||
|
||||
VPATH = ../common src
|
||||
vpath %.dic dictionaries
|
||||
OBJDIR = obj
|
||||
|
||||
LDLIBS ?= -L/usr/local/lib
|
||||
LDLIBS += -lreadline -lpthread -lm
|
||||
ifeq ($(platform),Darwin)
|
||||
# cf brew info qt: qt not symlinked anymore
|
||||
PKG_CONFIG_ENV := PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig
|
||||
endif
|
||||
|
||||
###################
|
||||
# local libraries #
|
||||
###################
|
||||
|
||||
## Amiibo
|
||||
AMIIBOLIBPATH = ./deps/amiitool
|
||||
AMIIBOLIBINC = -I$(AMIIBOLIBPATH)
|
||||
AMIIBOLIB = $(AMIIBOLIBPATH)/libamiibo.a
|
||||
|
||||
## Cliparser / Argtable3
|
||||
CLIPARSERLIBPATH = ./deps/cliparser
|
||||
CLIPARSERLIBINC = -I$(CLIPARSERLIBPATH)
|
||||
CLIPARSERLIB = $(CLIPARSERLIBPATH)/libcliparser.a
|
||||
|
||||
## Hardnested
|
||||
HARDNESTEDLIBPATH = ./deps/hardnested
|
||||
HARDNESTEDLIBINC = -I$(HARDNESTEDLIBPATH)
|
||||
HARDNESTEDLIB = $(HARDNESTEDLIBPATH)/libhardnested.a
|
||||
|
||||
## Jansson
|
||||
JANSSONLIBPATH = ./deps/jansson
|
||||
JANSSONLIBINC = -I$(JANSSONLIBPATH)
|
||||
JANSSONLIB = $(JANSSONLIBPATH)/libjansson.a
|
||||
|
||||
## Lua
|
||||
LUALIBPATH = ./deps/liblua
|
||||
LUALIBINC = -I$(LUALIBPATH)
|
||||
LUALIB = $(LUALIBPATH)/liblua.a
|
||||
LUAPLATFORM = generic
|
||||
ifneq (,$(findstring MINGW,$(platform)))
|
||||
LUAPLATFORM = mingw
|
||||
else
|
||||
ifeq ($(platform),Darwin)
|
||||
LUAPLATFORM = macosx
|
||||
else
|
||||
LUALIB += -ldl
|
||||
LUAPLATFORM = linux
|
||||
endif
|
||||
endif
|
||||
|
||||
## Reveng
|
||||
REVENGLIBPATH = ./deps/reveng
|
||||
REVENGLIBINC = -I$(REVENGLIBPATH)
|
||||
REVENGLIB = $(REVENGLIBPATH)/libreveng.a
|
||||
|
||||
## Tinycbor
|
||||
TINYCBORLIBPATH = ./deps/tinycbor
|
||||
TINYCBORLIBINC = -I$(TINYCBORLIBPATH)
|
||||
TINYCBORLIB = $(TINYCBORLIBPATH)/tinycbor.a
|
||||
|
||||
## Whereami
|
||||
WHEREAMILIBPATH = ./deps/whereami
|
||||
WHEREAMILIBINC = -I$(WHEREAMILIBPATH)
|
||||
WHEREAMILIB = $(WHEREAMILIBPATH)/libwhereami.a
|
||||
|
||||
##########################
|
||||
# common local libraries #
|
||||
##########################
|
||||
|
||||
## mbed TLS
|
||||
MBEDTLSLIBPATH = ../common/mbedtls
|
||||
MBEDTLSLIBINC = -I$(MBEDTLSLIBPATH)
|
||||
MBEDTLSLIB = $(OBJDIR)/libmbedtls.a
|
||||
|
||||
########################################################
|
||||
# optional system libraries to replace local libraries #
|
||||
########################################################
|
||||
|
||||
## Amiibo
|
||||
# not distributed as system library
|
||||
LDLIBS += $(AMIIBOLIB)
|
||||
INCLUDES += $(AMIIBOLIBINC)
|
||||
|
||||
## Cliparser / Argtable3
|
||||
# not distributed as system library
|
||||
LDLIBS += $(CLIPARSERLIB)
|
||||
INCLUDES += $(CLIPARSERLIBINC)
|
||||
|
||||
## Hardnested
|
||||
# not distributed as system library
|
||||
LDLIBS += $(HARDNESTEDLIB)
|
||||
INCLUDES += $(HARDNESTEDLIBINC)
|
||||
|
||||
## Jansson
|
||||
ifneq ($(SKIPJANSSONSYSTEM),1)
|
||||
JANSSONINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags jansson 2>/dev/null)
|
||||
JANSSONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs jansson 2>/dev/null)
|
||||
ifneq ($(JANSSONLDLIBS),)
|
||||
JANSSONLIB = $(JANSSONLDLIBS)
|
||||
JANSSONLIBINC = $(JANSSONINCLUDES)
|
||||
JANSSON_FOUND = 1
|
||||
endif
|
||||
endif
|
||||
LDLIBS += $(JANSSONLIB)
|
||||
INCLUDES += $(JANSSONLIBINC)
|
||||
|
||||
## Lua
|
||||
ifneq ($(SKIPLUASYSTEM),1)
|
||||
LUAINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags lua5.2 2>/dev/null)
|
||||
LUALDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs lua5.2 2>/dev/null)
|
||||
ifneq ($(LUALDLIBS),)
|
||||
LUALIB = $(LUALDLIBS)
|
||||
LUALIBINC = $(LUAINCLUDES)
|
||||
LUA_FOUND = 1
|
||||
endif
|
||||
endif
|
||||
LDLIBS += $(LUALIB)
|
||||
INCLUDES += $(LUALIBINC)
|
||||
|
||||
## mbed TLS
|
||||
# system library cannot be used because it is compiled by default without CMAC support
|
||||
LDLIBS +=$(MBEDTLSLIB)
|
||||
INCLUDES += $(MBEDTLSLIBINC)
|
||||
|
||||
## Reveng
|
||||
# not distributed as system library
|
||||
LDLIBS += $(REVENGLIB)
|
||||
INCLUDES += $(REVENGLIBINC)
|
||||
|
||||
## Tinycbor
|
||||
# not distributed as system library
|
||||
LDLIBS += $(TINYCBORLIB)
|
||||
INCLUDES += $(TINYCBORLIBINC)
|
||||
|
||||
## Whereami
|
||||
ifneq ($(SKIPWHEREAMISYSTEM),1)
|
||||
ifneq (,$(wildcard /usr/include/whereami.h))
|
||||
WHEREAMILIB = -lwhereami
|
||||
WHEREAMILIBINC =
|
||||
WHEREAMI_FOUND = 1
|
||||
endif
|
||||
endif
|
||||
LDLIBS += $(WHEREAMILIB)
|
||||
INCLUDES += $(WHEREAMILIBINC)
|
||||
|
||||
####################
|
||||
# system libraries #
|
||||
####################
|
||||
|
||||
## Atomic
|
||||
# RPi Zero gcc requires -latomic
|
||||
# but MacOSX /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
|
||||
# doesn't recognize option --as-needed
|
||||
@@ -31,35 +168,111 @@ ifneq ($(platform),Darwin)
|
||||
LDLIBS += -Wl,--as-needed -latomic -Wl,--no-as-needed
|
||||
endif
|
||||
|
||||
# local libraries
|
||||
LUALIBPATH = ./deps/liblua
|
||||
LUALIB = $(LUALIBPATH)/liblua.a
|
||||
JANSSONLIBPATH = ./deps/jansson
|
||||
JANSSONLIB = $(JANSSONLIBPATH)/libjansson.a
|
||||
CBORLIBPATH = ./deps/tinycbor
|
||||
CBORLIB = $(CBORLIBPATH)/tinycbor.a
|
||||
REVENGPATH = ./deps/reveng
|
||||
REVENGLIB = $(REVENGPATH)/libreveng.a
|
||||
AMIIBOLIBPATH = ./deps/amiitool
|
||||
AMIIBOLIB = $(AMIIBOLIBPATH)/libamiibo.a
|
||||
HARDNESTEDPATH = ./deps/hardnested
|
||||
HARDNESTEDLIB = $(HARDNESTEDPATH)/libhardnested.a
|
||||
CLIPARSERPATH = ./deps/cliparser
|
||||
CLIPARSERLIB = $(CLIPARSERPATH)/libcliparser.a
|
||||
## BZIP2
|
||||
LDLIBS += -lbz2
|
||||
|
||||
# common libraries
|
||||
MBEDTLSLIBPATH = ../common/mbedtls
|
||||
MBEDTLSLIB = $(OBJDIR)/libmbedtls.a
|
||||
ZLIBPATH = ../common/zlib
|
||||
ZLIB = $(OBJDIR)/libz.a
|
||||
## Bluez (optional)
|
||||
ifneq ($(SKIPBT),1)
|
||||
BTINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags bluez 2>/dev/null)
|
||||
BTLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs bluez 2>/dev/null)
|
||||
ifneq ($(BTLDLIBS),)
|
||||
BTLIB = $(BTLDLIBS)
|
||||
BTLIBINC = $(BTINCLUDES)
|
||||
BT_FOUND = 1
|
||||
endif
|
||||
endif
|
||||
LDLIBS += $(BTLIB)
|
||||
INCLUDES += $(BTLIBINC)
|
||||
|
||||
LIBS = -I$(LUALIBPATH) -I$(MBEDTLSLIBPATH) -I$(JANSSONLIBPATH) -I$(CBORLIBPATH) -I$(ZLIBPATH) -I$(REVENGPATH) -I$(AMIIBOLIBPATH) -I$(HARDNESTEDPATH) -I$(CLIPARSERPATH)
|
||||
INCLUDES_CLIENT = -I./src -I../include -I../common -I../common_fpga $(LIBS)
|
||||
CFLAGS ?= -Wall -Werror -O3
|
||||
## Math
|
||||
LDLIBS += -lm
|
||||
|
||||
## Pthread
|
||||
# Some have no pthread, e.g. termux
|
||||
ifneq ($(SKIPPTHREAD),1)
|
||||
LDLIBS += -lpthread
|
||||
endif
|
||||
|
||||
## Python3 (optional)
|
||||
ifneq ($(SKIPPYTHON),1)
|
||||
PYTHONINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags python3 2>/dev/null)
|
||||
PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3 2>/dev/null)
|
||||
ifneq ($(PYTHONLDLIBS),)
|
||||
PYTHONLIB = $(PYTHONLDLIBS)
|
||||
PYTHONLIBINC = $(PYTHONINCLUDES)
|
||||
PYTHON_FOUND = 1
|
||||
else
|
||||
# since python3.8, applications willing to embed python must use -embed:
|
||||
PYTHONINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags python3-embed 2>/dev/null)
|
||||
PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3-embed 2>/dev/null)
|
||||
ifneq ($(PYTHONLDLIBS),)
|
||||
PYTHONLIB = $(PYTHONLDLIBS)
|
||||
PYTHONLIBINC = $(PYTHONINCLUDES)
|
||||
PYTHON_FOUND = 1
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
LDLIBS += $(PYTHONLIB)
|
||||
INCLUDES += $(PYTHONLIBINC)
|
||||
|
||||
## QT5 (or QT4 fallback) (optional)
|
||||
ifneq ($(SKIPQT),1)
|
||||
# Check for correctly configured Qt5
|
||||
QTINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags Qt5Core Qt5Widgets 2>/dev/null)
|
||||
QTLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs Qt5Core Qt5Widgets 2>/dev/null)
|
||||
MOC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=host_bins Qt5Core)/moc
|
||||
UIC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=host_bins Qt5Core)/uic
|
||||
ifneq ($(QTLDLIBS),)
|
||||
QT5_FOUND = 1
|
||||
else
|
||||
# if Qt5 not found check for correctly configured Qt4
|
||||
QTINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags QtCore QtGui 2>/dev/null)
|
||||
QTLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs QtCore QtGui 2>/dev/null)
|
||||
MOC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=moc_location QtCore)
|
||||
UIC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=uic_location QtCore)
|
||||
endif
|
||||
ifeq ($(QTLDLIBS),)
|
||||
# if both pkg-config commands failed, search in common places
|
||||
ifneq ($(QTDIR),)
|
||||
ifneq ($(wildcard $(QTDIR)/include/QtWidgets),)
|
||||
# QT5
|
||||
QTINCLUDES = -I$(QTDIR)/include -I$(QTDIR)/include/QtCore -I$(QTDIR)/include/QtGui -I$(QTDIR)/include/QtWidgets
|
||||
QTLDLIBS = -L$(QTDIR)/lib -lQt5Core -lQt5Gui -lQt5Widgets
|
||||
QT5_FOUND = 1
|
||||
else
|
||||
# QT4
|
||||
QTINCLUDES = -I$(QTDIR)/include -I$(QTDIR)/include/QtCore -I$(QTDIR)/include/QtGui
|
||||
QTLDLIBS = -L$(QTDIR)/lib -lQtCore4 -lQtGui4
|
||||
endif
|
||||
MOC = $(QTDIR)/bin/moc
|
||||
UIC = $(QTDIR)/bin/uic
|
||||
endif
|
||||
endif
|
||||
ifneq ($(QTLDLIBS),)
|
||||
QT_FOUND = 1
|
||||
endif
|
||||
endif
|
||||
LDLIBS += $(QTLDLIBS)
|
||||
CXXINCLUDES += $(QTINCLUDES)
|
||||
|
||||
## Readline
|
||||
ifneq ($(SKIPREADLINE),1)
|
||||
ifeq ($(platform),Darwin)
|
||||
LDLIBS += -L/usr/local/opt/readline/lib
|
||||
INCLUDES += -I/usr/local/opt/readline/include
|
||||
endif
|
||||
LDLIBS += -lreadline
|
||||
READLINE_FOUND = 1
|
||||
endif
|
||||
|
||||
#######################################################################################################
|
||||
CFLAGS ?= $(DEFCFLAGS)
|
||||
# We cannot just use CFLAGS+=... because it has impact on sub-makes if CFLAGS is defined in env:
|
||||
PM3CFLAGS = $(CFLAGS) $(INCLUDES_CLIENT)
|
||||
PM3CFLAGS = $(CFLAGS)
|
||||
PM3CFLAGS += -I./src -I../include -I../common -I../common_fpga $(INCLUDES)
|
||||
# WIP Testing
|
||||
#PM3CFLAGS = $(CFLAGS) -std=c11 -pedantic $(INCLUDES_CLIENT)
|
||||
#PM3CFLAGS += -std=c11 -pedantic
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
ifneq (,$(findstring MINGW,$(platform)))
|
||||
# Mingw uses by default Microsoft printf, we want the GNU printf (e.g. for %z)
|
||||
@@ -69,227 +282,303 @@ ifneq (,$(findstring MINGW,$(platform)))
|
||||
PM3CFLAGS += -D_ISOC99_SOURCE
|
||||
PM3CFLAGS += -mno-ms-bitfields -fexec-charset=cp850
|
||||
endif
|
||||
|
||||
ifeq ($(READLINE_FOUND),1)
|
||||
PM3CFLAGS += -DHAVE_READLINE
|
||||
endif
|
||||
|
||||
ifeq ($(BT_FOUND),1)
|
||||
PM3CFLAGS += -DHAVE_BLUEZ
|
||||
endif
|
||||
|
||||
ifeq ($(PYTHON_FOUND),1)
|
||||
PM3CFLAGS += -DHAVE_PYTHON
|
||||
endif
|
||||
|
||||
|
||||
CXXFLAGS ?= -Wall -Werror -O3
|
||||
PM3CXXFLAGS = $(CXXFLAGS) -I../include
|
||||
PM3CXXFLAGS = $(CXXFLAGS)
|
||||
PM3CXXFLAGS += -I../include
|
||||
|
||||
LUAPLATFORM = generic
|
||||
ifneq (,$(findstring MINGW,$(platform)))
|
||||
LUAPLATFORM = mingw
|
||||
else
|
||||
ifeq ($(platform),Darwin)
|
||||
LUAPLATFORM = macosx
|
||||
OBJCSRCS = util_darwin.m
|
||||
LDFLAGS += -framework Foundation -framework AppKit
|
||||
LDLIBS := -L/usr/local/opt/readline/lib $(LDLIBS)
|
||||
LIBS := -I/usr/local/opt/readline/include $(LIBS)
|
||||
# cf brew info qt: qt not symlinked anymore
|
||||
PKG_CONFIG_ENV := PKG_CONFIG_ENV=/usr/local/opt/qt/lib/pkgconfig
|
||||
else
|
||||
LUALIB += -ldl
|
||||
LUAPLATFORM = linux
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(SKIPQT),1)
|
||||
# Check for correctly configured Qt5
|
||||
QTINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags Qt5Core Qt5Widgets 2>/dev/null)
|
||||
QTLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs Qt5Core Qt5Widgets 2>/dev/null)
|
||||
MOC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=host_bins Qt5Core)/moc
|
||||
UIC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=host_bins Qt5Core)/uic
|
||||
ifeq ($(QTINCLUDES), )
|
||||
# if Qt5 not found check for correctly configured Qt4
|
||||
QTINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags QtCore QtGui 2>/dev/null)
|
||||
QTLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs QtCore QtGui 2>/dev/null)
|
||||
MOC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=moc_location QtCore)
|
||||
UIC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=uic_location QtCore)
|
||||
else
|
||||
ifeq ($(QT_FOUND),1)
|
||||
PM3CFLAGS += -DHAVE_GUI
|
||||
PM3CXXFLAGS += -DQT_NO_DEBUG
|
||||
ifeq ($(QT5_FOUND),1)
|
||||
# On OSX Qt5 is claiming for a C++11 compiler (gnu++14 works too, but if nothing it fails)
|
||||
PM3CXXFLAGS += -fPIC -std=c++11
|
||||
endif
|
||||
ifeq ($(QTINCLUDES), )
|
||||
# if both pkg-config commands failed, search in common places
|
||||
ifneq ($(QTDIR), )
|
||||
QTINCLUDES = -I$(QTDIR)/include -I$(QTDIR)/include/QtCore -I$(QTDIR)/include/QtGui
|
||||
QTLDLIBS = -L$(QTDIR)/lib -lQtCore4 -lQtGui4
|
||||
ifneq ($(wildcard $(QTDIR)/include/QtWidgets),)
|
||||
QTINCLUDES += -I$(QTDIR)/include/QtWidgets
|
||||
QTLDLIBS = -L$(QTDIR)/lib -lQt5Widgets -lQt5Gui -lQt5Core
|
||||
PM3CXXFLAGS += -fPIC -std=c++11
|
||||
endif
|
||||
MOC = $(QTDIR)/bin/moc
|
||||
UIC = $(QTDIR)/bin/uic
|
||||
endif
|
||||
|
||||
PM3LDFLAGS = $(LDFLAGS)
|
||||
ifeq ($(platform),Darwin)
|
||||
PM3LDFLAGS += -framework Foundation -framework AppKit
|
||||
endif
|
||||
|
||||
###################
|
||||
# printing status #
|
||||
###################
|
||||
|
||||
$(info ===================================================================)
|
||||
$(info Client platform: $(platform))
|
||||
|
||||
ifeq ($(SKIPQT),1)
|
||||
$(info GUI support: skipped)
|
||||
else
|
||||
ifeq ($(QT_FOUND),1)
|
||||
ifeq ($(QT5_FOUND),1)
|
||||
$(info GUI support: QT5 found, enabled)
|
||||
else
|
||||
$(info GUI support: QT4 found, enabled)
|
||||
endif
|
||||
else
|
||||
$(info GUI support: QT not found, disabled)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(QTLDLIBS),)
|
||||
QTGUISRCS = proxgui.cpp proxguiqt.cpp proxguiqt.moc.cpp
|
||||
QTGUIOBJS = $(OBJDIR)/proxgui.o $(OBJDIR)/proxguiqt.o $(OBJDIR)/proxguiqt.moc.o
|
||||
PM3CFLAGS += -DHAVE_GUI
|
||||
PM3CXXFLAGS += -DQT_NO_DEBUG
|
||||
ifeq ($(SKIPBT),1)
|
||||
$(info native BT support: skipped)
|
||||
else
|
||||
QTGUISRCS = guidummy.cpp
|
||||
QTGUIOBJS = $(OBJDIR)/guidummy.o
|
||||
ifeq ($(BT_FOUND),1)
|
||||
$(info native BT support: Bluez found, enabled)
|
||||
else
|
||||
$(info native BT support: Bluez not found, disabled)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(SKIPJANSSONSYSTEM),1)
|
||||
$(info Jansson library: local library forced)
|
||||
else ifeq ($(JANSSON_FOUND),1)
|
||||
$(info Jansson library: system library found)
|
||||
else
|
||||
$(info Jansson library: system library not found, using local library)
|
||||
endif
|
||||
|
||||
ifeq ($(SKIPLUASYSTEM),1)
|
||||
$(info Lua library: local library forced)
|
||||
else
|
||||
ifeq ($(LUA_FOUND),1)
|
||||
$(info Lua library: system library found)
|
||||
else
|
||||
$(info Lua library: system library not found, using local library)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(SKIPPYTHON),1)
|
||||
$(info Python3 library: skipped)
|
||||
else
|
||||
ifeq ($(PYTHON_FOUND),1)
|
||||
$(info Python3 library: Python3 v$(shell pkg-config --modversion python3) found, enabled)
|
||||
else
|
||||
$(info Python3 library: Python3 not found, disabled)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(SKIPREADLINE),1)
|
||||
$(info Readline library: skipped)
|
||||
else
|
||||
ifeq ($(READLINE_FOUND),1)
|
||||
$(info Readline library: enabled)
|
||||
else
|
||||
$(info Readline library: Readline not found, disabled)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(SKIPWHEREAMISYSTEM),1)
|
||||
$(info Whereami library: local library forced)
|
||||
else
|
||||
ifeq ($(WHEREAMI_FOUND),1)
|
||||
$(info Whereami library: system library found)
|
||||
else
|
||||
$(info Whereami library: system library not found, using local library)
|
||||
endif
|
||||
endif
|
||||
|
||||
$(info compiler version: $(shell $(CC) --version|head -n 1))
|
||||
$(info ===================================================================)
|
||||
|
||||
################
|
||||
# dependencies #
|
||||
################
|
||||
|
||||
# Flags to generate temporary dependency files
|
||||
DEPFLAGS = -MT $@ -MMD -MP -MF $(OBJDIR)/$*.Td
|
||||
# make temporary to final dependency files after successful compilation
|
||||
POSTCOMPILE = $(MV) -f $(OBJDIR)/$*.Td $(OBJDIR)/$*.d && $(TOUCH) $@
|
||||
|
||||
CORESRCS = uart/uart_posix.c \
|
||||
uart/uart_win32.c \
|
||||
ui.c \
|
||||
commonutil.c \
|
||||
util.c \
|
||||
util_posix.c \
|
||||
scandir.c \
|
||||
crc16.c \
|
||||
crc32.c \
|
||||
comms.c
|
||||
################
|
||||
# enumerations #
|
||||
################
|
||||
|
||||
CMDSRCS = crapto1/crapto1.c \
|
||||
crapto1/crypto1.c \
|
||||
mifare/mifaredefault.c \
|
||||
mifare/mfkey.c \
|
||||
tea.c \
|
||||
fido/additional_ca.c \
|
||||
fido/cose.c \
|
||||
fido/cbortools.c \
|
||||
fido/fidocore.c \
|
||||
crypto/asn1dump.c \
|
||||
crypto/libpcrypto.c\
|
||||
crypto/asn1utils.c\
|
||||
loclass/cipher.c \
|
||||
loclass/cipherutils.c \
|
||||
loclass/ikeys.c \
|
||||
loclass/elite_crack.c \
|
||||
fileutils.c \
|
||||
whereami.c \
|
||||
mifare/mifarehost.c \
|
||||
parity.c \
|
||||
crc.c \
|
||||
crc64.c \
|
||||
legic_prng.c \
|
||||
iso15693tools.c \
|
||||
prng.c \
|
||||
generator.c \
|
||||
graph.c \
|
||||
cmddata.c \
|
||||
lfdemod.c \
|
||||
emv/crypto_polarssl.c\
|
||||
emv/crypto.c\
|
||||
emv/emv_pk.c\
|
||||
emv/emv_pki.c\
|
||||
emv/emv_pki_priv.c\
|
||||
emv/test/cryptotest.c\
|
||||
emv/apduinfo.c \
|
||||
emv/dump.c \
|
||||
emv/tlv.c \
|
||||
emv/emv_tags.c \
|
||||
emv/dol.c \
|
||||
emv/emvjson.c\
|
||||
emv/emvcore.c \
|
||||
emv/test/crypto_test.c\
|
||||
emv/test/sda_test.c\
|
||||
emv/test/dda_test.c\
|
||||
emv/test/cda_test.c\
|
||||
emv/cmdemv.c \
|
||||
emv/emv_roca.c \
|
||||
mifare/mifare4.c \
|
||||
mifare/mad.c \
|
||||
mifare/ndef.c \
|
||||
mifare/desfire_crypto.c \
|
||||
cmdanalyse.c \
|
||||
cmdhf.c \
|
||||
cmdhflist.c \
|
||||
aidsearch.c \
|
||||
cmdhf14a.c \
|
||||
cmdhf14b.c \
|
||||
cmdhf15.c \
|
||||
cmdhfepa.c \
|
||||
cmdhflegic.c \
|
||||
cmdhficlass.c \
|
||||
cmdhfmf.c \
|
||||
cmdhfmfu.c \
|
||||
cmdhfmfp.c \
|
||||
cmdhfmfhard.c \
|
||||
cmdhfmfdes.c \
|
||||
cmdhftopaz.c \
|
||||
cmdhffido.c \
|
||||
cmdhffelica.c \
|
||||
cmdhfthinfilm.c \
|
||||
cmdhfcryptorf.c \
|
||||
cmdhflto.c \
|
||||
cmdhw.c \
|
||||
cmdlf.c \
|
||||
cmdlfawid.c \
|
||||
cmdlfcotag.c \
|
||||
cmdlfem4x.c \
|
||||
cmdlffdx.c \
|
||||
cmdlfguard.c \
|
||||
cmdlfgallagher.c \
|
||||
cmdlfhid.c \
|
||||
cmdlfhitag.c \
|
||||
cmdlfio.c \
|
||||
cmdlfindala.c \
|
||||
cmdlfjablotron.c \
|
||||
cmdlfkeri.c \
|
||||
cmdlfnexwatch.c \
|
||||
cmdlfnedap.c \
|
||||
cmdlfnoralsy.c \
|
||||
cmdlfpac.c \
|
||||
cmdlfparadox.c \
|
||||
cmdlfpcf7931.c \
|
||||
cmdlfpresco.c \
|
||||
cmdlfpyramid.c \
|
||||
cmdlfsecurakey.c \
|
||||
cmdlft55xx.c \
|
||||
cmdlfti.c \
|
||||
cmdlfviking.c \
|
||||
cmdlfvisa2000.c \
|
||||
cmdlfmotorola.c \
|
||||
cmdtrace.c \
|
||||
cmdflashmem.c \
|
||||
cmdflashmemspiffs.c \
|
||||
cmdsmartcard.c \
|
||||
cmdusart.c \
|
||||
cmdwiegand.c \
|
||||
cmdparser.c \
|
||||
cmdmain.c \
|
||||
pm3_binlib.c \
|
||||
scripting.c \
|
||||
cmdscript.c \
|
||||
pm3_bitlib.c \
|
||||
cmdcrc.c \
|
||||
bucketsort.c \
|
||||
flash.c \
|
||||
wiegand_formats.c \
|
||||
wiegand_formatutils.c \
|
||||
cardhelper.c \
|
||||
preferences.c
|
||||
SRCS = aidsearch.c \
|
||||
cmdanalyse.c \
|
||||
cmdcrc.c \
|
||||
cmddata.c \
|
||||
cmdflashmem.c \
|
||||
cmdflashmemspiffs.c \
|
||||
cmdhf.c \
|
||||
cmdhf14a.c \
|
||||
cmdhf14b.c \
|
||||
cmdhf15.c \
|
||||
cmdhfcryptorf.c \
|
||||
cmdhfepa.c \
|
||||
cmdhffelica.c \
|
||||
cmdhffido.c \
|
||||
cmdhficlass.c \
|
||||
cmdhflegic.c \
|
||||
cmdhflist.c \
|
||||
cmdhflto.c \
|
||||
cmdhfmf.c \
|
||||
cmdhfmfdes.c \
|
||||
cmdhfmfhard.c \
|
||||
cmdhfmfu.c \
|
||||
cmdhfmfp.c \
|
||||
cmdhfthinfilm.c \
|
||||
cmdhftopaz.c \
|
||||
cmdhw.c \
|
||||
cmdlf.c \
|
||||
cmdlfawid.c \
|
||||
cmdlfcotag.c \
|
||||
cmdlfem4x.c \
|
||||
cmdlffdx.c \
|
||||
cmdlfguard.c \
|
||||
cmdlfgallagher.c \
|
||||
cmdlfhid.c \
|
||||
cmdlfhitag.c \
|
||||
cmdlfindala.c \
|
||||
cmdlfio.c \
|
||||
cmdlfjablotron.c \
|
||||
cmdlfkeri.c \
|
||||
cmdlfmotorola.c \
|
||||
cmdlfnedap.c \
|
||||
cmdlfnexwatch.c \
|
||||
cmdlfnoralsy.c \
|
||||
cmdlfpac.c \
|
||||
cmdlfparadox.c \
|
||||
cmdlfpcf7931.c \
|
||||
cmdlfpresco.c \
|
||||
cmdlfpyramid.c \
|
||||
cmdlfsecurakey.c \
|
||||
cmdlft55xx.c \
|
||||
cmdlfti.c \
|
||||
cmdlfviking.c \
|
||||
cmdlfvisa2000.c \
|
||||
cmdmain.c \
|
||||
cmdparser.c \
|
||||
cmdscript.c \
|
||||
cmdsmartcard.c \
|
||||
cmdtrace.c \
|
||||
cmdusart.c \
|
||||
cmdwiegand.c \
|
||||
comms.c \
|
||||
crypto/asn1dump.c \
|
||||
crypto/asn1utils.c\
|
||||
crypto/libpcrypto.c\
|
||||
emv/apduinfo.c \
|
||||
emv/cmdemv.c \
|
||||
emv/crypto.c\
|
||||
emv/crypto_polarssl.c\
|
||||
emv/dol.c \
|
||||
emv/dump.c \
|
||||
emv/emv_pk.c\
|
||||
emv/emv_pki.c\
|
||||
emv/emv_pki_priv.c\
|
||||
emv/emv_roca.c \
|
||||
emv/emv_tags.c \
|
||||
emv/emvcore.c \
|
||||
emv/emvjson.c\
|
||||
emv/tlv.c \
|
||||
emv/test/crypto_test.c\
|
||||
emv/test/cryptotest.c\
|
||||
emv/test/cda_test.c\
|
||||
emv/test/dda_test.c\
|
||||
emv/test/sda_test.c\
|
||||
fido/additional_ca.c \
|
||||
fido/cose.c \
|
||||
fido/cbortools.c \
|
||||
fido/fidocore.c \
|
||||
fileutils.c \
|
||||
flash.c \
|
||||
generator.c \
|
||||
graph.c \
|
||||
jansson_path.c \
|
||||
loclass/cipher.c \
|
||||
loclass/cipherutils.c \
|
||||
loclass/elite_crack.c \
|
||||
loclass/ikeys.c \
|
||||
mifare/desfire_crypto.c \
|
||||
mifare/mad.c \
|
||||
mifare/mfkey.c \
|
||||
mifare/mifare4.c \
|
||||
mifare/mifaredefault.c \
|
||||
mifare/mifarehost.c \
|
||||
mifare/ndef.c \
|
||||
pm3_binlib.c \
|
||||
pm3_bitlib.c \
|
||||
preferences.c \
|
||||
prng.c \
|
||||
proxmark3.c \
|
||||
scandir.c \
|
||||
uart/uart_posix.c \
|
||||
uart/uart_win32.c \
|
||||
scripting.c \
|
||||
tea.c \
|
||||
ui.c \
|
||||
util.c \
|
||||
version.c \
|
||||
wiegand_formats.c \
|
||||
wiegand_formatutils.c
|
||||
|
||||
# common
|
||||
SRCS += bucketsort.c \
|
||||
cardhelper.c \
|
||||
crapto1/crapto1.c \
|
||||
crapto1/crypto1.c \
|
||||
crc.c \
|
||||
crc16.c \
|
||||
crc32.c \
|
||||
crc64.c \
|
||||
commonutil.c \
|
||||
iso15693tools.c \
|
||||
legic_prng.c \
|
||||
lfdemod.c \
|
||||
parity.c \
|
||||
util_posix.c
|
||||
|
||||
# gui
|
||||
ifeq ($(QT_FOUND),1)
|
||||
CXXSRCS = proxgui.cpp proxguiqt.cpp proxguiqt.moc.cpp
|
||||
else
|
||||
CXXSRCS = guidummy.cpp
|
||||
endif
|
||||
|
||||
COREOBJS = $(CORESRCS:%.c=$(OBJDIR)/%.o)
|
||||
CMDOBJS = $(CMDSRCS:%.c=$(OBJDIR)/%.o)
|
||||
OBJCOBJS = $(OBJCSRCS:%.m=$(OBJDIR)/%.o)
|
||||
# OS X
|
||||
ifeq ($(platform),Darwin)
|
||||
OBJCSRCS = util_darwin.m
|
||||
endif
|
||||
|
||||
OBJS = $(SRCS:%.c=$(OBJDIR)/%.o)
|
||||
OBJS += $(CXXSRCS:%.cpp=$(OBJDIR)/%.o)
|
||||
OBJS += $(OBJCSRCS:%.m=$(OBJDIR)/%.o)
|
||||
|
||||
BINS = proxmark3
|
||||
CLEAN = $(BINS) src/*.moc.cpp src/ui/ui_overlays.h lualibs/pm3_cmd.lua lualibs/mfc_default_keys.lua
|
||||
|
||||
CLEAN = $(BINS) src/version.c src/*.moc.cpp src/ui/ui_overlays.h lualibs/pm3_cmd.lua lualibs/mfc_default_keys.lua
|
||||
# transition: cleaning also old path stuff
|
||||
CLEAN += flasher *.moc.cpp ui/ui_overlays.h
|
||||
|
||||
###########
|
||||
# targets #
|
||||
###########
|
||||
|
||||
# need to assign dependancies to build these first...
|
||||
all: $(BINS)
|
||||
|
||||
all-static: LDLIBS:=-static $(LDLIBS)
|
||||
all-static: $(BINS)
|
||||
|
||||
proxmark3: LDLIBS+=$(LUALIB) $(JANSSONLIB) $(MBEDTLSLIB) $(CBORLIB) $(ZLIB) $(REVENGLIB) $(AMIIBOLIB) $(HARDNESTEDLIB) $(CLIPARSERLIB) $(QTLDLIBS)
|
||||
proxmark3: $(OBJDIR)/proxmark3.o $(COREOBJS) $(CMDOBJS) $(OBJCOBJS) $(QTGUIOBJS) $(LUALIB) $(JANSSONLIB) $(CBORLIB) $(REVENGLIB) $(MBEDTLSLIB) $(ZLIB) $(AMIIBOLIB) $(HARDNESTEDLIB) $(CLIPARSERLIB) lualibs/pm3_cmd.lua lualibs/mfc_default_keys.lua
|
||||
proxmark3: $(OBJS) amiibo cliparser jansson hardnested lua mbedtls reveng tinycbor whereami lualibs/pm3_cmd.lua lualibs/mfc_default_keys.lua
|
||||
$(info [=] LD $@)
|
||||
$(Q)$(LD) $(LDFLAGS) $(OBJDIR)/proxmark3.o $(COREOBJS) $(CMDOBJS) $(OBJCOBJS) $(QTGUIOBJS) $(LDLIBS) -o $@
|
||||
$(Q)$(LD) $(PM3LDFLAGS) $(OBJS) $(LDLIBS) -o $@
|
||||
|
||||
src/proxgui.cpp: src/ui/ui_overlays.h
|
||||
|
||||
@@ -312,13 +601,16 @@ lualibs/mfc_default_keys.lua : mfc_default_keys.dic
|
||||
clean:
|
||||
$(Q)$(RM) $(CLEAN)
|
||||
$(Q)$(RMDIR) $(OBJDIR)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(LUALIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(JANSSONLIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(CBORLIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(REVENGPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(AMIIBOLIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(HARDNESTEDPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(CLIPARSERPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(CLIPARSERLIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(HARDNESTEDLIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(JANSSONLIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(LUALIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(REVENGLIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(TINYCBORLIBPATH) clean
|
||||
$(Q)$(MAKE) --no-print-directory -C $(WHEREAMILIBPATH) clean
|
||||
@# Just in case someone compiled within these dirs:
|
||||
$(Q)$(MAKE) --no-print-directory -C $(MBEDTLSLIBPATH) clean
|
||||
|
||||
install: all
|
||||
$(info [@] Installing client to $(DESTDIR)$(PREFIX)...)
|
||||
@@ -346,45 +638,62 @@ tarbin: $(BINS)
|
||||
$(info [=] TAR ../proxmark3-$(platform)-bin.tar)
|
||||
$(Q)$(TAR) $(TARFLAGS) ../proxmark3-$(platform)-bin.tar $(BINS:%=client/%) $(WINBINS:%=client/%)
|
||||
|
||||
# local libraries:
|
||||
$(LUALIB):
|
||||
$(info [*] MAKE liblua for $(LUAPLATFORM))
|
||||
$(Q)$(MAKE) --no-print-directory -C $(LUALIBPATH) $(LUAPLATFORM)
|
||||
###########################
|
||||
# local libraries targets #
|
||||
###########################
|
||||
|
||||
$(JANSSONLIB):
|
||||
$(info [*] MAKE jansson)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(JANSSONLIBPATH) all
|
||||
|
||||
$(CBORLIB):
|
||||
$(info [*] MAKE tinycbor)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(CBORLIBPATH) all
|
||||
|
||||
$(REVENGLIB):
|
||||
$(info [*] MAKE reveng)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(REVENGPATH) all
|
||||
|
||||
$(HARDNESTEDLIB):
|
||||
$(info [*] MAKE hardnested)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(HARDNESTEDPATH) all
|
||||
|
||||
$(AMIIBOLIB):
|
||||
$(info [*] MAKE amiibo)
|
||||
amiibo:
|
||||
$(info [*] MAKE $@)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(AMIIBOLIBPATH) all
|
||||
|
||||
$(CLIPARSERLIB):
|
||||
$(info [*] MAKE cliparser)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(CLIPARSERPATH) all
|
||||
cliparser:
|
||||
$(info [*] MAKE $@)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(CLIPARSERLIBPATH) all
|
||||
|
||||
# common libraries:
|
||||
$(MBEDTLSLIB):
|
||||
$(info [*] MAKE mbedtls)
|
||||
hardnested:
|
||||
$(info [*] MAKE $@)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(HARDNESTEDLIBPATH) all
|
||||
|
||||
jansson:
|
||||
ifneq ($(JANSSON_FOUND),1)
|
||||
$(info [*] MAKE $@)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(JANSSONLIBPATH) all
|
||||
endif
|
||||
|
||||
lua:
|
||||
ifneq ($(LUA_FOUND),1)
|
||||
$(info [*] MAKE $@ for $(LUAPLATFORM))
|
||||
$(Q)$(MAKE) --no-print-directory -C $(LUALIBPATH) $(LUAPLATFORM)
|
||||
endif
|
||||
|
||||
mbedtls:
|
||||
$(info [*] MAKE $@)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(MBEDTLSLIBPATH) OBJDIR=$(ROOT_DIR)$(OBJDIR) BINDIR=$(ROOT_DIR)$(OBJDIR) all
|
||||
|
||||
$(ZLIB):
|
||||
$(info [*] MAKE zlib)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(ZLIBPATH) OBJDIR=$(ROOT_DIR)$(OBJDIR) BINDIR=$(ROOT_DIR)$(OBJDIR) all
|
||||
reveng:
|
||||
$(info [*] MAKE $@)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(REVENGLIBPATH) all
|
||||
|
||||
.PHONY: all clean install uninstall
|
||||
tinycbor:
|
||||
$(info [*] MAKE $@)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(TINYCBORLIBPATH) all
|
||||
|
||||
whereami:
|
||||
ifneq ($(WHEREAMI_FOUND),1)
|
||||
$(info [*] MAKE $@)
|
||||
$(Q)$(MAKE) --no-print-directory -C $(WHEREAMILIBPATH) all
|
||||
endif
|
||||
|
||||
########
|
||||
# misc #
|
||||
########
|
||||
|
||||
.PHONY: all clean install uninstall tarbin amiibo cliparser hardnested jansson lua mbedtls reveng tinycbor whereami
|
||||
|
||||
# version.c should be remade on every compilation
|
||||
src/version.c: default_version.c
|
||||
$(info [=] GEN $@)
|
||||
$(Q)$(SH) ../tools/mkversion.sh > $@ || $(PERL) ../tools/mkversion.pl > $@ || $(CP) $< $@
|
||||
|
||||
# easy printing of MAKE VARIABLES
|
||||
print-%: ; @echo $* = $($*)
|
||||
@@ -400,7 +709,7 @@ $(OBJDIR)/%.o : %.c $(OBJDIR)/%.d
|
||||
$(OBJDIR)/%.o : %.cpp $(OBJDIR)/%.d
|
||||
$(info [-] CXX $<)
|
||||
$(Q)$(MKDIR) $(dir $@)
|
||||
$(Q)$(CXX) $(DEPFLAGS) $(PM3CXXFLAGS) $(QTINCLUDES) -c -o $@ $<
|
||||
$(Q)$(CXX) $(DEPFLAGS) $(PM3CXXFLAGS) $(CXXINCLUDES) -c -o $@ $<
|
||||
$(Q)$(POSTCOMPILE)
|
||||
|
||||
%.o: %.m
|
||||
@@ -410,10 +719,9 @@ $(OBJDIR)/%.o : %.m $(OBJDIR)/%.d
|
||||
$(Q)$(CC) $(DEPFLAGS) $(PM3CFLAGS) -c -o $@ $<
|
||||
$(Q)$(POSTCOMPILE)
|
||||
|
||||
DEPENDENCY_FILES = $(patsubst %.c, $(OBJDIR)/%.d, $(CORESRCS) $(CMDSRCS)) \
|
||||
$(patsubst %.cpp, $(OBJDIR)/%.d, $(QTGUISRCS)) \
|
||||
$(patsubst %.m, $(OBJDIR)/%.d, $(OBJCSRCS)) \
|
||||
$(OBJDIR)/proxmark3.d
|
||||
DEPENDENCY_FILES = $(patsubst %.c, $(OBJDIR)/%.d, $(SRCS)) \
|
||||
$(patsubst %.cpp, $(OBJDIR)/%.d, $(CXXSRCS)) \
|
||||
$(patsubst %.m, $(OBJDIR)/%.d, $(OBJCSRCS))
|
||||
|
||||
$(DEPENDENCY_FILES): ;
|
||||
.PRECIOUS: $(DEPENDENCY_FILES)
|
||||
|
||||
@@ -0,0 +1,183 @@
|
||||
# version
|
||||
cmake_minimum_required(VERSION 3.4.1)
|
||||
|
||||
# We are build on android platform, so we need add def "ANDROID"
|
||||
# NDK version for SDK 19 doesn't implement the whole C++11 standard in the STL.
|
||||
# see: https://stackoverflow.com/questions/44736135/ndk-clang-error-undefined-reference-to-localeconv
|
||||
# so we need add def getlocaledecpoint()='.'
|
||||
add_definitions(-DANDROID -D"getlocaledecpoint\(\)='.'")
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -fvisibility=hidden -w")
|
||||
|
||||
# Root path into client
|
||||
set(PM3_ROOT ../../)
|
||||
|
||||
add_subdirectory(../deps deps)
|
||||
|
||||
# client resources
|
||||
add_library(pm3rrg_rdv4 SHARED
|
||||
${PM3_ROOT}/common/util_posix.c
|
||||
${PM3_ROOT}/common/crapto1/crapto1.c
|
||||
${PM3_ROOT}/common/crapto1/crypto1.c
|
||||
${PM3_ROOT}/common/crc.c
|
||||
${PM3_ROOT}/common/crc16.c
|
||||
${PM3_ROOT}/common/crc32.c
|
||||
${PM3_ROOT}/common/crc64.c
|
||||
${PM3_ROOT}/common/cardhelper.c
|
||||
${PM3_ROOT}/common/parity.c
|
||||
${PM3_ROOT}/common/commonutil.c
|
||||
${PM3_ROOT}/common/generator.c
|
||||
${PM3_ROOT}/common/lfdemod.c
|
||||
${PM3_ROOT}/common/iso15693tools.c
|
||||
${PM3_ROOT}/common/bucketsort.c
|
||||
${PM3_ROOT}/common/legic_prng.c
|
||||
# client inside
|
||||
${PM3_ROOT}/client/src/fileutils.c
|
||||
${PM3_ROOT}/client/src/uart/uart_posix.c
|
||||
${PM3_ROOT}/client/src/loclass/cipherutils.c
|
||||
${PM3_ROOT}/client/src/loclass/cipher.c
|
||||
${PM3_ROOT}/client/src/loclass/ikeys.c
|
||||
${PM3_ROOT}/client/src/loclass/elite_crack.c
|
||||
${PM3_ROOT}/client/src/emv/emvcore.c
|
||||
${PM3_ROOT}/client/src/emv/cmdemv.c
|
||||
${PM3_ROOT}/client/src/emv/tlv.c
|
||||
${PM3_ROOT}/client/src/emv/dol.c
|
||||
${PM3_ROOT}/client/src/emv/emv_tags.c
|
||||
${PM3_ROOT}/client/src/emv/emv_roca.c
|
||||
${PM3_ROOT}/client/src/emv/dump.c
|
||||
${PM3_ROOT}/client/src/emv/crypto_polarssl.c
|
||||
${PM3_ROOT}/client/src/emv/crypto.c
|
||||
${PM3_ROOT}/client/src/emv/emv_pk.c
|
||||
${PM3_ROOT}/client/src/emv/emv_pki.c
|
||||
${PM3_ROOT}/client/src/emv/emvjson.c
|
||||
${PM3_ROOT}/client/src/emv/apduinfo.c
|
||||
${PM3_ROOT}/client/src/emv/test/cryptotest.c
|
||||
${PM3_ROOT}/client/src/emv/test/sda_test.c
|
||||
${PM3_ROOT}/client/src/emv/test/dda_test.c
|
||||
${PM3_ROOT}/client/src/emv/test/cda_test.c
|
||||
${PM3_ROOT}/client/src/emv/test/crypto_test.c
|
||||
${PM3_ROOT}/client/src/emv/test/cryptotest.c
|
||||
${PM3_ROOT}/client/src/emv/test/sda_test.c
|
||||
${PM3_ROOT}/client/src/emv/test/dda_test.c
|
||||
${PM3_ROOT}/client/src/emv/test/cda_test.c
|
||||
${PM3_ROOT}/client/src/emv/test/crypto_test.c
|
||||
${PM3_ROOT}/client/src/crypto/libpcrypto.c
|
||||
${PM3_ROOT}/client/src/crypto/asn1utils.c
|
||||
${PM3_ROOT}/client/src/crypto/asn1dump.c
|
||||
${PM3_ROOT}/client/src/mifare/mad.c
|
||||
${PM3_ROOT}/client/src/mifare/mfkey.c
|
||||
${PM3_ROOT}/client/src/mifare/mifare4.c
|
||||
${PM3_ROOT}/client/src/mifare/mifarehost.c
|
||||
${PM3_ROOT}/client/src/mifare/ndef.c
|
||||
${PM3_ROOT}/client/src/mifare/desfire_crypto.c
|
||||
${PM3_ROOT}/client/src/mifare/mifaredefault.c
|
||||
${PM3_ROOT}/client/src/fido/cose.c
|
||||
${PM3_ROOT}/client/src/fido/fidocore.c
|
||||
${PM3_ROOT}/client/src/fido/cbortools.c
|
||||
${PM3_ROOT}/client/src/fido/additional_ca.c
|
||||
${PM3_ROOT}/client/src/preferences.c
|
||||
${PM3_ROOT}/client/src/graph.c
|
||||
${PM3_ROOT}/client/src/ui.c
|
||||
${PM3_ROOT}/client/src/tea.c
|
||||
${PM3_ROOT}/client/src/util.c
|
||||
${PM3_ROOT}/client/src/comms.c
|
||||
${PM3_ROOT}/client/src/cmdcrc.c
|
||||
${PM3_ROOT}/client/src/cmdanalyse.c
|
||||
${PM3_ROOT}/client/src/cmddata.c
|
||||
${PM3_ROOT}/client/src/cmdtrace.c
|
||||
${PM3_ROOT}/client/src/cmdhf.c
|
||||
${PM3_ROOT}/client/src/cmdhflto.c
|
||||
${PM3_ROOT}/client/src/aidsearch.c
|
||||
${PM3_ROOT}/client/src/cmdhf14a.c
|
||||
${PM3_ROOT}/client/src/cmdhf14b.c
|
||||
${PM3_ROOT}/client/src/cmdwiegand.c
|
||||
${PM3_ROOT}/client/src/wiegand_formatutils.c
|
||||
${PM3_ROOT}/client/src/wiegand_formats.c
|
||||
${PM3_ROOT}/client/src/cmdlfmotorola.c
|
||||
${PM3_ROOT}/client/src/cmdlfgallagher.c
|
||||
${PM3_ROOT}/client/src/cmdhf15.c
|
||||
${PM3_ROOT}/client/src/cmdhfepa.c
|
||||
${PM3_ROOT}/client/src/cmdhflegic.c
|
||||
${PM3_ROOT}/client/src/cmdhfthinfilm.c
|
||||
${PM3_ROOT}/client/src/cmdflashmemspiffs.c
|
||||
${PM3_ROOT}/client/src/cmdhffelica.c
|
||||
${PM3_ROOT}/client/src/cmdhficlass.c
|
||||
${PM3_ROOT}/client/src/cmdhflist.c
|
||||
${PM3_ROOT}/client/src/cmdhfmf.c
|
||||
${PM3_ROOT}/client/src/cmdhfmfdes.c
|
||||
${PM3_ROOT}/client/src/cmdhfmfu.c
|
||||
${PM3_ROOT}/client/src/cmdhfmfp.c
|
||||
${PM3_ROOT}/client/src/cmdhffido.c
|
||||
${PM3_ROOT}/client/src/cmdhftopaz.c
|
||||
${PM3_ROOT}/client/src/cmdhw.c
|
||||
${PM3_ROOT}/client/src/cmdlf.c
|
||||
${PM3_ROOT}/client/src/cmdlfkeri.c
|
||||
${PM3_ROOT}/client/src/cmdlffdx.c
|
||||
${PM3_ROOT}/client/src/cmdlfio.c
|
||||
${PM3_ROOT}/client/src/cmdlfem4x.c
|
||||
${PM3_ROOT}/client/src/cmdlfhid.c
|
||||
${PM3_ROOT}/client/src/cmdlfnedap.c
|
||||
${PM3_ROOT}/client/src/cmdlfguard.c
|
||||
${PM3_ROOT}/client/src/cmdlfhitag.c
|
||||
${PM3_ROOT}/client/src/cmdlfjablotron.c
|
||||
${PM3_ROOT}/client/src/cmdsmartcard.c
|
||||
${PM3_ROOT}/client/src/cmdlfti.c
|
||||
${PM3_ROOT}/client/src/cmdlfpac.c
|
||||
${PM3_ROOT}/client/src/cmdlfnoralsy.c
|
||||
${PM3_ROOT}/client/src/cmdlfnexwatch.c
|
||||
${PM3_ROOT}/client/src/cmdlfpresco.c
|
||||
${PM3_ROOT}/client/src/cmdlfindala.c
|
||||
${PM3_ROOT}/client/src/cmdlfviking.c
|
||||
${PM3_ROOT}/client/src/cmdlfsecurakey.c
|
||||
${PM3_ROOT}/client/src/cmdlfpyramid.c
|
||||
${PM3_ROOT}/client/src/cmdlfparadox.c
|
||||
${PM3_ROOT}/client/src/cmdlfcotag.c
|
||||
${PM3_ROOT}/client/src/cmdlfawid.c
|
||||
${PM3_ROOT}/client/src/cmdparser.c
|
||||
${PM3_ROOT}/client/src/cmdscript.c
|
||||
${PM3_ROOT}/client/src/cmdlfvisa2000.c
|
||||
${PM3_ROOT}/client/src/cmdmain.c
|
||||
${PM3_ROOT}/client/src/cmdflashmem.c
|
||||
${PM3_ROOT}/client/src/scripting.c
|
||||
${PM3_ROOT}/client/src/pm3_binlib.c
|
||||
${PM3_ROOT}/client/src/pm3_bitlib.c
|
||||
${PM3_ROOT}/client/src/cmdlft55xx.c
|
||||
${PM3_ROOT}/client/src/cmdlfpcf7931.c
|
||||
${PM3_ROOT}/client/src/cmdhfmfhard.c
|
||||
${PM3_ROOT}/client/src/cmdusart.c
|
||||
${PM3_ROOT}/client/src/jansson_path.c
|
||||
# android resources
|
||||
jni_tools.c
|
||||
pm3_main.c
|
||||
)
|
||||
|
||||
# includes
|
||||
target_include_directories(pm3rrg_rdv4 PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${PM3_ROOT}/include/
|
||||
${PM3_ROOT}/common
|
||||
${PM3_ROOT}/common_fpga
|
||||
${PM3_ROOT}/client/src)
|
||||
|
||||
find_library(pm3rrg_rdv4_cliparser REQUIRED)
|
||||
find_library(pm3rrg_rdv4_jansson REQUIRED)
|
||||
find_library(pm3rrg_rdv4_tinycbor REQUIRED)
|
||||
find_library(pm3rrg_rdv4_lua REQUIRED)
|
||||
find_library(pm3rrg_rdv4_mbedtls REQUIRED)
|
||||
find_library(pm3rrg_rdv4_reveng REQUIRED)
|
||||
find_library(pm3rrg_rdv4_hardnested REQUIRED)
|
||||
find_library(pm3rrg_rdv4_whereami REQUIRED)
|
||||
|
||||
target_link_libraries(pm3rrg_rdv4
|
||||
bz2
|
||||
pm3rrg_rdv4_hardnested
|
||||
pm3rrg_rdv4_mbedtls
|
||||
pm3rrg_rdv4_cliparser
|
||||
pm3rrg_rdv4_jansson
|
||||
pm3rrg_rdv4_lua
|
||||
pm3rrg_rdv4_tinycbor
|
||||
pm3rrg_rdv4_amiibo
|
||||
pm3rrg_rdv4_reveng
|
||||
pm3rrg_rdv4_whereami
|
||||
android
|
||||
log)
|
||||
@@ -0,0 +1,81 @@
|
||||
//
|
||||
// Created by DXL on 2017/9/1.
|
||||
//
|
||||
|
||||
//including header
|
||||
#include <malloc.h>
|
||||
#include <jni_tools.h>
|
||||
#include "stdbool.h"
|
||||
|
||||
// native thread attach label
|
||||
static bool g_IsAttach;
|
||||
|
||||
// get current env for jvm
|
||||
JNIEnv *getJniEnv() {
|
||||
JNIEnv *currentThreadEnv;
|
||||
g_IsAttach = false;
|
||||
if ((*g_JavaVM)->GetEnv(g_JavaVM, (void **) ¤tThreadEnv, JNI_VERSION_1_4) != JNI_OK) {
|
||||
LOGE("Get Env Fail!");
|
||||
if ((*g_JavaVM)->AttachCurrentThread(g_JavaVM, ¤tThreadEnv, NULL) != JNI_OK) {
|
||||
LOGE("Attach the current thread Fail!");
|
||||
g_IsAttach = false;
|
||||
return NULL;
|
||||
} else {
|
||||
g_IsAttach = true;
|
||||
LOGE("Attach the current thread Success!");
|
||||
return currentThreadEnv;
|
||||
}
|
||||
} else {
|
||||
g_IsAttach = false;
|
||||
//LOGE("Get Env Success!");
|
||||
return currentThreadEnv;
|
||||
}
|
||||
}
|
||||
|
||||
// detach native thread from jvm
|
||||
void detachThread() {
|
||||
if (g_IsAttach) {
|
||||
(*g_JavaVM)->DetachCurrentThread(g_JavaVM);
|
||||
}
|
||||
}
|
||||
|
||||
// cmd arg parse
|
||||
CMD *parse_command_line(const char *commandStr) {
|
||||
CMD *cmd = (CMD *) malloc(sizeof(CMD));
|
||||
if (!cmd) {
|
||||
return NULL;
|
||||
}
|
||||
// copy the source to the heap
|
||||
char *pTmp = strdup(commandStr);
|
||||
// new memory size is default 20 for char **
|
||||
int size = 20;
|
||||
cmd->cmd = (char **) malloc(size * sizeof(char **));
|
||||
if (!cmd->cmd) {
|
||||
free(cmd);
|
||||
return NULL;
|
||||
}
|
||||
// parse
|
||||
char *pStr = strtok(pTmp, " ");
|
||||
cmd->cmd[0] = pStr;
|
||||
int count = 1;
|
||||
for (; pStr != NULL; ++count) {
|
||||
// Capacity expansion
|
||||
if (count == (size - 1)) {
|
||||
size += 20;
|
||||
cmd->cmd = (char **) realloc(cmd->cmd, size * sizeof(char **));
|
||||
}
|
||||
pStr = strtok(NULL, " ");
|
||||
if (pStr) {
|
||||
cmd->cmd[count] = pStr;
|
||||
}
|
||||
}
|
||||
cmd->len = (count - 1);
|
||||
return cmd;
|
||||
}
|
||||
|
||||
// cmd arg struct free
|
||||
void free_command_line(CMD *cmd) {
|
||||
free(cmd->cmd[0]);
|
||||
free(cmd->cmd);
|
||||
free(cmd);
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// Created by dell on 2017/9/1.
|
||||
//
|
||||
|
||||
#ifndef DXL_TOOLS_H
|
||||
#define DXL_TOOLS_H
|
||||
|
||||
#include <jni.h>
|
||||
#include <android/log.h>
|
||||
#include <string.h>
|
||||
|
||||
//JNI LOG
|
||||
#define TAG "PM3"
|
||||
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE,TAG,__VA_ARGS__)
|
||||
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,TAG,__VA_ARGS__)
|
||||
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,TAG,__VA_ARGS__)
|
||||
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN,TAG,__VA_ARGS__)
|
||||
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,TAG,__VA_ARGS__)
|
||||
|
||||
// a global jvm instance
|
||||
JavaVM *g_JavaVM;
|
||||
|
||||
// get current env for jvm
|
||||
JNIEnv *getJniEnv();
|
||||
|
||||
// detach native thread from jvm, must native thread can detach!
|
||||
void detachThread();
|
||||
|
||||
typedef struct {
|
||||
char **cmd;
|
||||
int len;
|
||||
} CMD;
|
||||
|
||||
// cmd arg parse
|
||||
CMD *parse_command_line(const char *commandStr);
|
||||
|
||||
// cmd arg struct free
|
||||
void free_command_line(CMD *);
|
||||
|
||||
#endif //DXL_TOOLS_H
|
||||
@@ -0,0 +1,167 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Copyright (C) 2009 Michael Gernoth <michael at gernoth.net>
|
||||
// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
|
||||
//
|
||||
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
||||
// at your option, any later version. See the LICENSE.txt file for the text of
|
||||
// the license.
|
||||
//-----------------------------------------------------------------------------
|
||||
// Main binary
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "proxmark3.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h> // for Mingw readline
|
||||
#include <limits.h>
|
||||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
#include "usart_defs.h"
|
||||
#include "util_posix.h"
|
||||
#include "proxgui.h"
|
||||
#include "cmdmain.h"
|
||||
#include "ui.h"
|
||||
#include "cmdhw.h"
|
||||
#include "whereami.h"
|
||||
#include "comms.h"
|
||||
#include "fileutils.h"
|
||||
#include "jni_tools.h"
|
||||
|
||||
//iceman, todo: proxify socker server name. Maybe set in preferences?
|
||||
#define PM3_LOCAL_SOCKET_SERVER "DXL.COM.ASL"
|
||||
|
||||
void ShowGraphWindow(void) {
|
||||
}
|
||||
|
||||
void HideGraphWindow(void) {
|
||||
}
|
||||
|
||||
void RepaintGraphWindow(void) {
|
||||
}
|
||||
|
||||
int push_cmdscriptfile(char *path, bool stayafter) {
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
static char *g_android_executable_directory = NULL;
|
||||
static const char *g_android_user_directory = NULL;
|
||||
|
||||
const char *get_executable_directory(void) {
|
||||
|
||||
if (g_android_executable_directory == NULL) {
|
||||
char buf[FILE_PATH_SIZE] = {0};
|
||||
getcwd(buf, sizeof(buf));
|
||||
strncat(buf, PATHSEP, 1);
|
||||
g_android_executable_directory = strdup(buf);
|
||||
}
|
||||
return g_android_executable_directory;
|
||||
}
|
||||
|
||||
const char *get_user_directory(void) {
|
||||
return g_android_user_directory;
|
||||
}
|
||||
|
||||
static bool OpenPm3(void) {
|
||||
if (conn.run) {
|
||||
return true;
|
||||
}
|
||||
// Open with LocalSocket. Not a tcp connection!
|
||||
bool ret = OpenProxmark("socket:"PM3_LOCAL_SOCKET_SERVER, false, 1000, false, 115200);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
* Transfers to the command buffer and waits for a new command to be executed
|
||||
* */
|
||||
jint Console(JNIEnv *env, jobject instance, jstring cmd_) {
|
||||
|
||||
if (!conn.run) {
|
||||
if (OpenPm3() && TestProxmark() == PM3_SUCCESS) {
|
||||
LOGD("Connected to device");
|
||||
PrintAndLogEx(SUCCESS, "Connected to device");
|
||||
} else {
|
||||
LOGD("Failed to connect to device");
|
||||
PrintAndLogEx(ERR, "Failed to connect to device");
|
||||
CloseProxmark();
|
||||
}
|
||||
}
|
||||
|
||||
PrintAndLogEx(NORMAL, "");
|
||||
|
||||
char *cmd = (char *)((*env)->GetStringUTFChars(env, cmd_, 0));
|
||||
int ret = CommandReceived(cmd);
|
||||
if (ret == 99) {
|
||||
// exit / quit
|
||||
// TODO: implement this
|
||||
PrintAndLogEx(NORMAL, "Asked to exit, can't really do that yet...");
|
||||
}
|
||||
|
||||
(*env)->ReleaseStringUTFChars(env, cmd_, cmd);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
* Is client running!
|
||||
* */
|
||||
jboolean IsClientRunning(JNIEnv *env, jobject instance) {
|
||||
return (jboolean)((jboolean) conn.run);
|
||||
}
|
||||
|
||||
/*
|
||||
* test hw and hw and client.
|
||||
* */
|
||||
jboolean TestPm3(JNIEnv *env, jobject instance) {
|
||||
if (open() == false) {
|
||||
CloseProxmark();
|
||||
return false;
|
||||
}
|
||||
bool ret = (TestProxmark() == PM3_SUCCESS);
|
||||
return (jboolean)(ret);
|
||||
}
|
||||
|
||||
/*
|
||||
* stop pm3 client
|
||||
* */
|
||||
void ClosePm3(JNIEnv *env, jobject instance) {
|
||||
CloseProxmark();
|
||||
}
|
||||
|
||||
/*
|
||||
* native function map to jvm
|
||||
* */
|
||||
|
||||
//iceman: todo, pm3:ify java class root. Return codes, should match PM3_E* codes.
|
||||
JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *reserved) {
|
||||
JNIEnv *jniEnv = NULL;
|
||||
if ((*vm)->GetEnv(vm, (void **) &jniEnv, JNI_VERSION_1_4) != JNI_OK) {
|
||||
return -1;
|
||||
}
|
||||
(*jniEnv)->GetJavaVM(jniEnv, &g_JavaVM);
|
||||
jclass clazz = (*jniEnv)->FindClass(jniEnv, "cn/rrg/natives/Proxmark3RRGRdv4Tools");
|
||||
if (clazz == NULL) {
|
||||
return -1;
|
||||
}
|
||||
jclass clz_test = (*jniEnv)->FindClass(jniEnv, "cn/rrg/devices/Proxmark3RRGRdv4");
|
||||
JNINativeMethod methods[] = {
|
||||
{"startExecute", "(Ljava/lang/String;)I", (void *) Console},
|
||||
{"stopExecute", "()V", (void *) ClosePm3},
|
||||
{"isExecuting", "()Z", (void *) IsClientRunning}
|
||||
};
|
||||
|
||||
JNINativeMethod methods1[] = {
|
||||
{"testPm3", "()Z", (void *) TestPm3},
|
||||
{"closePm3", "()V", ClosePm3}
|
||||
};
|
||||
|
||||
if ((*jniEnv)->RegisterNatives(jniEnv, clazz, methods, sizeof(methods) / sizeof(methods[0])) != JNI_OK) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ((*jniEnv)->RegisterNatives(jniEnv, clz_test, methods1, sizeof(methods1) / sizeof(methods1[0])) != JNI_OK) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
(*jniEnv)->DeleteLocalRef(jniEnv, clazz);
|
||||
(*jniEnv)->DeleteLocalRef(jniEnv, clz_test);
|
||||
return JNI_VERSION_1_4;
|
||||
}
|
||||
@@ -1,9 +1,27 @@
|
||||
include(cliparser.cmake)
|
||||
include(tinycbor.cmake)
|
||||
include(jansson.cmake)
|
||||
include(lua.cmake)
|
||||
include(mbedtls.cmake)
|
||||
include(amiibo.cmake)
|
||||
include(reveng.cmake)
|
||||
include(zlib.cmake)
|
||||
include(hardnested.cmake)
|
||||
if (NOT TARGET pm3rrg_rdv4_amiibo)
|
||||
include(amiibo.cmake)
|
||||
endif()
|
||||
if (NOT TARGET pm3rrg_rdv4_cliparser)
|
||||
include(cliparser.cmake)
|
||||
endif()
|
||||
if (NOT TARGET pm3rrg_rdv4_hardnested)
|
||||
include(hardnested.cmake)
|
||||
endif()
|
||||
if (NOT TARGET pm3rrg_rdv4_jansson)
|
||||
include(jansson.cmake)
|
||||
endif()
|
||||
if (NOT TARGET pm3rrg_rdv4_lua)
|
||||
include(lua.cmake)
|
||||
endif()
|
||||
if (NOT TARGET pm3rrg_rdv4_mbedtls)
|
||||
include(mbedtls.cmake)
|
||||
endif()
|
||||
if (NOT TARGET pm3rrg_rdv4_reveng)
|
||||
include(reveng.cmake)
|
||||
endif()
|
||||
if (NOT TARGET pm3rrg_rdv4_tinycbor)
|
||||
include(tinycbor.cmake)
|
||||
endif()
|
||||
if (NOT TARGET pm3rrg_rdv4_whereami)
|
||||
include(whereami.cmake)
|
||||
endif()
|
||||
@@ -5,12 +5,20 @@
|
||||
#amiitool.c $(MYSRCS) ../../../../common/../../commonutil.c ../ui.c -lreadline -lm ../../../../common/mbedtls/libmbedtls.a \
|
||||
#-o amiitool
|
||||
|
||||
add_library(amiibo STATIC
|
||||
add_library(pm3rrg_rdv4_amiibo STATIC
|
||||
amiitool/amiibo.c
|
||||
amiitool/drbg.c
|
||||
amiitool/keygen.c
|
||||
)
|
||||
|
||||
target_include_directories(amiibo PRIVATE ../../include ../../common)
|
||||
target_include_directories(amiibo INTERFACE amiitool)
|
||||
target_compile_options(amiibo PRIVATE -Wall -Werror -O3)
|
||||
if (NOT TARGET pm3rrg_rdv4_mbedtls)
|
||||
include(mbedtls.cmake)
|
||||
endif()
|
||||
find_library(pm3rrg_rdv4_mbedtls REQUIRED)
|
||||
target_link_libraries(pm3rrg_rdv4_amiibo PRIVATE
|
||||
m
|
||||
pm3rrg_rdv4_mbedtls)
|
||||
target_include_directories(pm3rrg_rdv4_amiibo PRIVATE ../../include ../../common)
|
||||
target_include_directories(pm3rrg_rdv4_amiibo INTERFACE amiitool)
|
||||
target_compile_options(pm3rrg_rdv4_amiibo PRIVATE -Wall -Werror -O3)
|
||||
set_property(TARGET pm3rrg_rdv4_amiibo PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
@@ -1,5 +1,5 @@
|
||||
MYSRCPATHS =
|
||||
MYINCLUDES = -I. -I.. -I../jansson -I../../../common -I../../../include
|
||||
MYINCLUDES = -I. -I.. -I../jansson -I../../../common -I../../../common/mbedtls -I../../../include
|
||||
MYCFLAGS =
|
||||
MYDEFS =
|
||||
MYSRCS = \
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
*/
|
||||
|
||||
#include "amiibo.h"
|
||||
#include "mbedtls/md.h"
|
||||
#include "mbedtls/aes.h"
|
||||
#include "md.h"
|
||||
#include "aes.h"
|
||||
#include "commonutil.h"
|
||||
|
||||
#define HMAC_POS_DATA 0x008
|
||||
#define HMAC_POS_TAG 0x1B4
|
||||
|
||||
void nfc3d_amiibo_calc_seed(const uint8_t *dump, uint8_t *key) {
|
||||
static void nfc3d_amiibo_calc_seed(const uint8_t *dump, uint8_t *key) {
|
||||
memcpy(key + 0x00, dump + 0x029, 0x02);
|
||||
memset(key + 0x02, 0x00, 0x0E);
|
||||
memcpy(key + 0x10, dump + 0x1D4, 0x08);
|
||||
@@ -21,14 +21,14 @@ void nfc3d_amiibo_calc_seed(const uint8_t *dump, uint8_t *key) {
|
||||
memcpy(key + 0x20, dump + 0x1E8, 0x20);
|
||||
}
|
||||
|
||||
void nfc3d_amiibo_keygen(const nfc3d_keygen_masterkeys *masterKeys, const uint8_t *dump, nfc3d_keygen_derivedkeys *derivedKeys) {
|
||||
static void nfc3d_amiibo_keygen(const nfc3d_keygen_masterkeys *masterKeys, const uint8_t *dump, nfc3d_keygen_derivedkeys *derivedKeys) {
|
||||
uint8_t seed[NFC3D_KEYGEN_SEED_SIZE];
|
||||
|
||||
nfc3d_amiibo_calc_seed(dump, seed);
|
||||
nfc3d_keygen(masterKeys, seed, derivedKeys);
|
||||
}
|
||||
|
||||
void nfc3d_amiibo_cipher(const nfc3d_keygen_derivedkeys *keys, const uint8_t *in, uint8_t *out) {
|
||||
static void nfc3d_amiibo_cipher(const nfc3d_keygen_derivedkeys *keys, const uint8_t *in, uint8_t *out) {
|
||||
mbedtls_aes_context aes;
|
||||
size_t nc_off = 0;
|
||||
unsigned char nonce_counter[16];
|
||||
@@ -47,7 +47,7 @@ void nfc3d_amiibo_cipher(const nfc3d_keygen_derivedkeys *keys, const uint8_t *in
|
||||
memcpy(out + 0x1D4, in + 0x1D4, 0x034);
|
||||
}
|
||||
|
||||
void nfc3d_amiibo_tag_to_internal(const uint8_t *tag, uint8_t *intl) {
|
||||
static void nfc3d_amiibo_tag_to_internal(const uint8_t *tag, uint8_t *intl) {
|
||||
memcpy(intl + 0x000, tag + 0x008, 0x008);
|
||||
memcpy(intl + 0x008, tag + 0x080, 0x020);
|
||||
memcpy(intl + 0x028, tag + 0x010, 0x024);
|
||||
@@ -57,7 +57,7 @@ void nfc3d_amiibo_tag_to_internal(const uint8_t *tag, uint8_t *intl) {
|
||||
memcpy(intl + 0x1DC, tag + 0x054, 0x02C);
|
||||
}
|
||||
|
||||
void nfc3d_amiibo_internal_to_tag(const uint8_t *intl, uint8_t *tag) {
|
||||
static void nfc3d_amiibo_internal_to_tag(const uint8_t *intl, uint8_t *tag) {
|
||||
memcpy(tag + 0x008, intl + 0x000, 0x008);
|
||||
memcpy(tag + 0x080, intl + 0x008, 0x020);
|
||||
memcpy(tag + 0x010, intl + 0x028, 0x024);
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
static char *self;
|
||||
|
||||
void amiitool_usage() {
|
||||
void amiitool_usage(void) {
|
||||
fprintf(stderr,
|
||||
/*"amiitool build %i (commit %s-%08x)\n"*/
|
||||
"by Marcos Del Sol Vives <marcos@dracon.es>\n"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "drbg.h"
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "mbedtls/md.h"
|
||||
#include "md.h"
|
||||
|
||||
void nfc3d_drbg_init(nfc3d_drbg_ctx *ctx, const uint8_t *hmacKey, size_t hmacKeySize, const uint8_t *seed, size_t seedSize) {
|
||||
assert(ctx != NULL);
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
void nfc3d_keygen_prepare_seed(const nfc3d_keygen_masterkeys *baseKeys, const uint8_t *baseSeed, uint8_t *output, size_t *outputSize) {
|
||||
static void nfc3d_keygen_prepare_seed(const nfc3d_keygen_masterkeys *baseKeys, const uint8_t *baseSeed, uint8_t *output, size_t *outputSize) {
|
||||
assert(baseKeys != NULL);
|
||||
assert(baseSeed != NULL);
|
||||
assert(output != NULL);
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
add_library(cliparser STATIC
|
||||
add_library(pm3rrg_rdv4_cliparser STATIC
|
||||
cliparser/argtable3.c
|
||||
cliparser/cliparser.c
|
||||
)
|
||||
|
||||
target_include_directories(cliparser PRIVATE
|
||||
target_include_directories(pm3rrg_rdv4_cliparser PRIVATE
|
||||
../../common
|
||||
../../include
|
||||
../src)
|
||||
target_include_directories(cliparser INTERFACE cliparser)
|
||||
target_compile_options(cliparser PRIVATE -Wall -Werror -O3)
|
||||
target_include_directories(pm3rrg_rdv4_cliparser INTERFACE cliparser)
|
||||
target_compile_options(pm3rrg_rdv4_cliparser PRIVATE -Wall -Werror -O3)
|
||||
set_property(TARGET pm3rrg_rdv4_cliparser PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
@@ -1,6 +1,6 @@
|
||||
MYSRCPATHS =
|
||||
MYINCLUDES = -I../../../common -I../../../include -I../../src
|
||||
MYCFLAGS =
|
||||
MYCFLAGS = -Wno-cast-align
|
||||
MYDEFS =
|
||||
MYSRCS = \
|
||||
argtable3.c \
|
||||
|
||||
@@ -3398,13 +3398,13 @@ void trex_free(TRex *exp) {
|
||||
}
|
||||
|
||||
TRexBool trex_match(TRex *exp, const TRexChar *text) {
|
||||
const TRexChar *res = NULL;
|
||||
exp->_bol = text;
|
||||
exp->_eol = text + scstrlen(text);
|
||||
exp->_currsubexp = 0;
|
||||
res = trex_matchnode(exp, exp->_nodes, text, NULL);
|
||||
if (res == NULL || res != exp->_eol)
|
||||
const TRexChar *res = trex_matchnode(exp, exp->_nodes, text, NULL);
|
||||
if (res == NULL || res != exp->_eol) {
|
||||
return TRex_False;
|
||||
}
|
||||
return TRex_True;
|
||||
}
|
||||
|
||||
@@ -4135,7 +4135,8 @@ int arg_parse(int argc, char * *argv, void * *argtable) {
|
||||
*/
|
||||
static void arg_cat(char **pdest, const char *src, size_t *pndest) {
|
||||
char *dest = *pdest;
|
||||
char *end = dest + *pndest;
|
||||
// PM3 fix: leave room for null terminate char
|
||||
char *end = dest + *pndest - 1;
|
||||
|
||||
/*locate null terminator of dest string */
|
||||
while (dest < end && *dest != 0)
|
||||
|
||||
@@ -10,50 +10,53 @@
|
||||
|
||||
#include "cliparser.h"
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#ifndef ARRAYLEN
|
||||
# define ARRAYLEN(x) (sizeof(x)/sizeof((x)[0]))
|
||||
#endif
|
||||
|
||||
void **argtable = NULL;
|
||||
size_t argtableLen = 0;
|
||||
const char *programName = NULL;
|
||||
const char *programHint = NULL;
|
||||
const char *programHelp = NULL;
|
||||
char buf[500] = {0};
|
||||
|
||||
int CLIParserInit(const char *vprogramName, const char *vprogramHint, const char *vprogramHelp) {
|
||||
argtable = NULL;
|
||||
argtableLen = 0;
|
||||
programName = vprogramName;
|
||||
programHint = vprogramHint;
|
||||
programHelp = vprogramHelp;
|
||||
memset(buf, 0x00, 500);
|
||||
int CLIParserInit(CLIParserContext **ctx, const char *vprogramName, const char *vprogramHint, const char *vprogramHelp) {
|
||||
*ctx = malloc(sizeof(CLIParserContext));
|
||||
if (!*ctx) {
|
||||
printf("ERROR: Insufficient memory\n");
|
||||
fflush(stdout);
|
||||
return 2;
|
||||
}
|
||||
(*ctx)->argtable = NULL;
|
||||
(*ctx)->argtableLen = 0;
|
||||
(*ctx)->programName = vprogramName;
|
||||
(*ctx)->programHint = vprogramHint;
|
||||
(*ctx)->programHelp = vprogramHelp;
|
||||
memset((*ctx)->buf, 0x00, sizeof((*ctx)->buf));
|
||||
return 0;
|
||||
}
|
||||
|
||||
int CLIParserParseArg(int argc, char **argv, void *vargtable[], size_t vargtableLen, bool allowEmptyExec) {
|
||||
int CLIParserParseArg(CLIParserContext *ctx, int argc, char **argv, void *vargtable[], size_t vargtableLen, bool allowEmptyExec) {
|
||||
int nerrors;
|
||||
|
||||
argtable = vargtable;
|
||||
argtableLen = vargtableLen;
|
||||
ctx->argtable = vargtable;
|
||||
ctx->argtableLen = vargtableLen;
|
||||
|
||||
/* verify the argtable[] entries were allocated sucessfully */
|
||||
if (arg_nullcheck(argtable) != 0) {
|
||||
if (arg_nullcheck(ctx->argtable) != 0) {
|
||||
/* NULL entries were detected, some allocations must have failed */
|
||||
printf("ERROR: Insufficient memory\n");
|
||||
fflush(stdout);
|
||||
return 2;
|
||||
}
|
||||
/* Parse the command line as defined by argtable[] */
|
||||
nerrors = arg_parse(argc, argv, argtable);
|
||||
nerrors = arg_parse(argc, argv, ctx->argtable);
|
||||
|
||||
/* special case: '--help' takes precedence over error reporting */
|
||||
if ((argc < 2 && !allowEmptyExec) || ((struct arg_lit *)argtable[0])->count > 0) { // help must be the first record
|
||||
printf("Usage: %s", programName);
|
||||
arg_print_syntaxv(stdout, argtable, "\n");
|
||||
if (programHint)
|
||||
printf("%s\n\n", programHint);
|
||||
arg_print_glossary(stdout, argtable, " %-20s %s\n");
|
||||
if ((argc < 2 && !allowEmptyExec) || ((struct arg_lit *)(ctx->argtable)[0])->count > 0) { // help must be the first record
|
||||
printf("Usage: %s", ctx->programName);
|
||||
arg_print_syntaxv(stdout, ctx->argtable, "\n");
|
||||
if (ctx->programHint)
|
||||
printf("%s\n\n", ctx->programHint);
|
||||
arg_print_glossary(stdout, ctx->argtable, " %-20s %s\n");
|
||||
printf("\n");
|
||||
if (programHelp)
|
||||
printf("%s \n", programHelp);
|
||||
if (ctx->programHelp)
|
||||
printf("%s \n", ctx->programHelp);
|
||||
|
||||
fflush(stdout);
|
||||
return 1;
|
||||
@@ -62,8 +65,8 @@ int CLIParserParseArg(int argc, char **argv, void *vargtable[], size_t vargtable
|
||||
/* If the parser returned any errors then display them and exit */
|
||||
if (nerrors > 0) {
|
||||
/* Display the error details contained in the arg_end struct.*/
|
||||
arg_print_errors(stdout, ((struct arg_end *)argtable[vargtableLen - 1]), programName);
|
||||
printf("Try '%s --help' for more information.\n", programName);
|
||||
arg_print_errors(stdout, ((struct arg_end *)(ctx->argtable)[vargtableLen - 1]), ctx->programName);
|
||||
printf("Try '%s --help' for more information.\n", ctx->programName);
|
||||
fflush(stdout);
|
||||
return 3;
|
||||
}
|
||||
@@ -79,23 +82,24 @@ enum ParserState {
|
||||
|
||||
#define isSpace(c)(c == ' ' || c == '\t')
|
||||
|
||||
int CLIParserParseString(const char *str, void *vargtable[], size_t vargtableLen, bool allowEmptyExec) {
|
||||
return CLIParserParseStringEx(str, vargtable, vargtableLen, allowEmptyExec, false);
|
||||
int CLIParserParseString(CLIParserContext *ctx, const char *str, void *vargtable[], size_t vargtableLen, bool allowEmptyExec) {
|
||||
return CLIParserParseStringEx(ctx, str, vargtable, vargtableLen, allowEmptyExec, false);
|
||||
}
|
||||
|
||||
int CLIParserParseStringEx(const char *str, void *vargtable[], size_t vargtableLen, bool allowEmptyExec, bool clueData) {
|
||||
int CLIParserParseStringEx(CLIParserContext *ctx, const char *str, void *vargtable[], size_t vargtableLen, bool allowEmptyExec, bool clueData) {
|
||||
int argc = 0;
|
||||
char *argv[200] = {NULL};
|
||||
|
||||
int len = strlen(str);
|
||||
char *bufptr = buf;
|
||||
memset(ctx->buf, 0x00, ARRAYLEN(ctx->buf));
|
||||
char *bufptr = ctx->buf;
|
||||
char *spaceptr = NULL;
|
||||
enum ParserState state = PS_FIRST;
|
||||
|
||||
argv[argc++] = bufptr;
|
||||
// param0 = program name
|
||||
memcpy(buf, programName, strlen(programName) + 1); // with 0x00
|
||||
bufptr += strlen(programName) + 1;
|
||||
memcpy(ctx->buf, ctx->programName, strlen(ctx->programName) + 1); // with 0x00
|
||||
bufptr += strlen(ctx->programName) + 1;
|
||||
if (len)
|
||||
argv[argc++] = bufptr;
|
||||
|
||||
@@ -140,14 +144,7 @@ int CLIParserParseStringEx(const char *str, void *vargtable[], size_t vargtableL
|
||||
}
|
||||
}
|
||||
|
||||
return CLIParserParseArg(argc, argv, vargtable, vargtableLen, allowEmptyExec);
|
||||
}
|
||||
|
||||
void CLIParserFree() {
|
||||
arg_freetable(argtable, argtableLen);
|
||||
argtable = NULL;
|
||||
|
||||
return;
|
||||
return CLIParserParseArg(ctx, argc, argv, vargtable, vargtableLen, allowEmptyExec);
|
||||
}
|
||||
|
||||
// convertors
|
||||
|
||||
@@ -11,32 +11,41 @@
|
||||
#ifndef __CLIPARSER_H
|
||||
#define __CLIPARSER_H
|
||||
#include "argtable3.h"
|
||||
#include <stdlib.h>
|
||||
#include "util.h"
|
||||
|
||||
#define arg_param_begin arg_lit0("hH", "help", "This help")
|
||||
#define arg_param_end arg_end(20)
|
||||
|
||||
#define arg_getsize(a) (sizeof(a) / sizeof(a[0]))
|
||||
#define arg_get_lit(n) (((struct arg_lit*)argtable[n])->count)
|
||||
#define arg_get_int_count(n)(((struct arg_int*)argtable[n])->count)
|
||||
#define arg_get_int(n) (((struct arg_int*)argtable[n])->ival[0])
|
||||
#define arg_get_int_def(n, def)(arg_get_int_count(n) ? (arg_get_int(n)) : (def))
|
||||
#define arg_get_str(n) ((struct arg_str*)argtable[n])
|
||||
#define arg_get_str_len(n) (strlen(((struct arg_str*)argtable[n])->sval[0]))
|
||||
#define arg_get_lit(ctx, n) (((struct arg_lit*)((ctx)->argtable)[n])->count)
|
||||
#define arg_get_int_count(ctx, n)(((struct arg_int*)((ctx)->argtable)[n])->count)
|
||||
#define arg_get_int(ctx, n) (((struct arg_int*)((ctx)->argtable)[n])->ival[0])
|
||||
#define arg_get_int_def(ctx, n, def)(arg_get_int_count((ctx), n) ? (arg_get_int((ctx), n)) : (def))
|
||||
#define arg_get_str(ctx, n) ((struct arg_str*)((ctx)->argtable)[n])
|
||||
#define arg_get_str_len(ctx, n) (strlen(((struct arg_str*)((ctx)->argtable)[n])->sval[0]))
|
||||
|
||||
#define arg_strx1(shortopts, longopts, datatype, glossary) (arg_strn((shortopts), (longopts), (datatype), 1, 250, (glossary)))
|
||||
#define arg_strx0(shortopts, longopts, datatype, glossary) (arg_strn((shortopts), (longopts), (datatype), 0, 250, (glossary)))
|
||||
|
||||
#define CLIExecWithReturn(cmd, atbl, ifempty) if (CLIParserParseString(cmd, atbl, arg_getsize(atbl), ifempty)){CLIParserFree();return PM3_ESOFT;}
|
||||
#define CLIGetHexBLessWithReturn(paramnum, data, datalen, delta) if (CLIParamHexToBuf(arg_get_str(paramnum), data, sizeof(data) - (delta), datalen)) {CLIParserFree();return PM3_ESOFT;}
|
||||
#define CLIGetHexWithReturn(paramnum, data, datalen) if (CLIParamHexToBuf(arg_get_str(paramnum), data, sizeof(data), datalen)) {CLIParserFree();return PM3_ESOFT;}
|
||||
#define CLIGetStrWithReturn(paramnum, data, datalen) if (CLIParamStrToBuf(arg_get_str(paramnum), data, sizeof(data), datalen)) {CLIParserFree();return PM3_ESOFT;}
|
||||
#define CLIParserFree(ctx) if ((ctx)) {arg_freetable(ctx->argtable, ctx->argtableLen); free((ctx)); (ctx)=NULL;}
|
||||
#define CLIExecWithReturn(ctx, cmd, atbl, ifempty) if (CLIParserParseString(ctx, cmd, atbl, arg_getsize(atbl), ifempty)) {CLIParserFree((ctx)); return PM3_ESOFT;}
|
||||
#define CLIGetHexBLessWithReturn(ctx, paramnum, data, datalen, delta) if (CLIParamHexToBuf(arg_get_str(ctx, paramnum), data, sizeof(data) - (delta), datalen)) {CLIParserFree((ctx)); return PM3_ESOFT;}
|
||||
#define CLIGetHexWithReturn(ctx, paramnum, data, datalen) if (CLIParamHexToBuf(arg_get_str(ctx, paramnum), data, sizeof(data), datalen)) {CLIParserFree((ctx)); return PM3_ESOFT;}
|
||||
#define CLIGetStrWithReturn(ctx, paramnum, data, datalen) if (CLIParamStrToBuf(arg_get_str(ctx, paramnum), data, sizeof(data), datalen)) {CLIParserFree((ctx)); return PM3_ESOFT;}
|
||||
|
||||
int CLIParserInit(const char *vprogramName, const char *vprogramHint, const char *vprogramHelp);
|
||||
int CLIParserParseString(const char *str, void *vargtable[], size_t vargtableLen, bool allowEmptyExec);
|
||||
int CLIParserParseStringEx(const char *str, void *vargtable[], size_t vargtableLen, bool allowEmptyExec, bool clueData);
|
||||
int CLIParserParseArg(int argc, char **argv, void *vargtable[], size_t vargtableLen, bool allowEmptyExec);
|
||||
void CLIParserFree(void);
|
||||
typedef struct {
|
||||
void **argtable;
|
||||
size_t argtableLen;
|
||||
const char *programName;
|
||||
const char *programHint;
|
||||
const char *programHelp;
|
||||
char buf[1024 + 60];
|
||||
} CLIParserContext;
|
||||
int CLIParserInit(CLIParserContext **ctx, const char *vprogramName, const char *vprogramHint, const char *vprogramHelp);
|
||||
int CLIParserParseString(CLIParserContext *ctx, const char *str, void *vargtable[], size_t vargtableLen, bool allowEmptyExec);
|
||||
int CLIParserParseStringEx(CLIParserContext *ctx, const char *str, void *vargtable[], size_t vargtableLen, bool allowEmptyExec, bool clueData);
|
||||
int CLIParserParseArg(CLIParserContext *ctx, int argc, char **argv, void *vargtable[], size_t vargtableLen, bool allowEmptyExec);
|
||||
|
||||
int CLIParamHexToBuf(struct arg_str *argstr, uint8_t *data, int maxdatalen, int *datalen);
|
||||
int CLIParamStrToBuf(struct arg_str *argstr, uint8_t *data, int maxdatalen, int *datalen);
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
add_library(hardnested_nosimd OBJECT
|
||||
add_library(pm3rrg_rdv4_hardnested_nosimd OBJECT
|
||||
hardnested/hardnested_bf_core.c
|
||||
hardnested/hardnested_bitarray_core.c)
|
||||
|
||||
target_compile_options(hardnested_nosimd PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(pm3rrg_rdv4_hardnested_nosimd PRIVATE -Wall -Werror -O3)
|
||||
set_property(TARGET pm3rrg_rdv4_hardnested_nosimd PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
target_include_directories(hardnested_nosimd PRIVATE
|
||||
target_include_directories(pm3rrg_rdv4_hardnested_nosimd PRIVATE
|
||||
../../common
|
||||
../../include)
|
||||
|
||||
@@ -18,92 +19,98 @@ message(STATUS "CMAKE_SYSTEM_PROCESSOR := ${CMAKE_SYSTEM_PROCESSOR}")
|
||||
if ("${CMAKE_SYSTEM_PROCESSOR}" IN_LIST X86_CPUS)
|
||||
message(STATUS "Building optimised x86/x86_64 binaries")
|
||||
|
||||
target_compile_options(hardnested_nosimd BEFORE PRIVATE
|
||||
target_compile_options(pm3rrg_rdv4_hardnested_nosimd BEFORE PRIVATE
|
||||
-mno-mmx -mno-sse2 -mno-avx -mno-avx2 -mno-avx512f)
|
||||
|
||||
## x86 / MMX
|
||||
add_library(hardnested_mmx OBJECT
|
||||
add_library(pm3rrg_rdv4_hardnested_mmx OBJECT
|
||||
hardnested/hardnested_bf_core.c
|
||||
hardnested/hardnested_bitarray_core.c)
|
||||
|
||||
target_compile_options(hardnested_mmx PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(hardnested_mmx BEFORE PRIVATE
|
||||
target_compile_options(pm3rrg_rdv4_hardnested_mmx PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(pm3rrg_rdv4_hardnested_mmx BEFORE PRIVATE
|
||||
-mmmx -mno-sse2 -mno-avx -mno-avx2 -mno-avx512f)
|
||||
set_property(TARGET pm3rrg_rdv4_hardnested_mmx PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
target_include_directories(hardnested_mmx PRIVATE
|
||||
target_include_directories(pm3rrg_rdv4_hardnested_mmx PRIVATE
|
||||
../../common
|
||||
../../include)
|
||||
|
||||
## x86 / SSE2
|
||||
add_library(hardnested_sse2 OBJECT
|
||||
add_library(pm3rrg_rdv4_hardnested_sse2 OBJECT
|
||||
hardnested/hardnested_bf_core.c
|
||||
hardnested/hardnested_bitarray_core.c)
|
||||
|
||||
target_compile_options(hardnested_sse2 PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(hardnested_sse2 BEFORE PRIVATE
|
||||
target_compile_options(pm3rrg_rdv4_hardnested_sse2 PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(pm3rrg_rdv4_hardnested_sse2 BEFORE PRIVATE
|
||||
-mmmx -msse2 -mno-avx -mno-avx2 -mno-avx512f)
|
||||
set_property(TARGET pm3rrg_rdv4_hardnested_sse2 PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
target_include_directories(hardnested_sse2 PRIVATE
|
||||
target_include_directories(pm3rrg_rdv4_hardnested_sse2 PRIVATE
|
||||
../../common
|
||||
../../include)
|
||||
|
||||
## x86 / AVX
|
||||
add_library(hardnested_avx OBJECT
|
||||
add_library(pm3rrg_rdv4_hardnested_avx OBJECT
|
||||
hardnested/hardnested_bf_core.c
|
||||
hardnested/hardnested_bitarray_core.c)
|
||||
|
||||
target_compile_options(hardnested_avx PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(hardnested_avx BEFORE PRIVATE
|
||||
target_compile_options(pm3rrg_rdv4_hardnested_avx PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(pm3rrg_rdv4_hardnested_avx BEFORE PRIVATE
|
||||
-mmmx -msse2 -mavx -mno-avx2 -mno-avx512f)
|
||||
set_property(TARGET pm3rrg_rdv4_hardnested_avx PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
target_include_directories(hardnested_avx PRIVATE
|
||||
target_include_directories(pm3rrg_rdv4_hardnested_avx PRIVATE
|
||||
../../common
|
||||
../../include)
|
||||
|
||||
## x86 / AVX2
|
||||
add_library(hardnested_avx2 OBJECT
|
||||
add_library(pm3rrg_rdv4_hardnested_avx2 OBJECT
|
||||
hardnested/hardnested_bf_core.c
|
||||
hardnested/hardnested_bitarray_core.c)
|
||||
|
||||
target_compile_options(hardnested_avx2 PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(hardnested_avx2 BEFORE PRIVATE
|
||||
target_compile_options(pm3rrg_rdv4_hardnested_avx2 PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(pm3rrg_rdv4_hardnested_avx2 BEFORE PRIVATE
|
||||
-mmmx -msse2 -mavx -mavx2 -mno-avx512f)
|
||||
set_property(TARGET pm3rrg_rdv4_hardnested_avx2 PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
target_include_directories(hardnested_avx2 PRIVATE
|
||||
target_include_directories(pm3rrg_rdv4_hardnested_avx2 PRIVATE
|
||||
../../common
|
||||
../../include)
|
||||
|
||||
## x86 / AVX512
|
||||
add_library(hardnested_avx512 OBJECT
|
||||
add_library(pm3rrg_rdv4_hardnested_avx512 OBJECT
|
||||
hardnested/hardnested_bf_core.c
|
||||
hardnested/hardnested_bitarray_core.c)
|
||||
|
||||
target_compile_options(hardnested_avx512 PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(hardnested_avx512 BEFORE PRIVATE
|
||||
target_compile_options(pm3rrg_rdv4_hardnested_avx512 PRIVATE -Wall -Werror -O3)
|
||||
target_compile_options(pm3rrg_rdv4_hardnested_avx512 BEFORE PRIVATE
|
||||
-mmmx -msse2 -mavx -mavx2 -mavx512f)
|
||||
set_property(TARGET pm3rrg_rdv4_hardnested_avx512 PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
target_include_directories(hardnested_avx512 PRIVATE
|
||||
target_include_directories(pm3rrg_rdv4_hardnested_avx512 PRIVATE
|
||||
../../common
|
||||
../../include)
|
||||
|
||||
set(SIMD_TARGETS
|
||||
$<TARGET_OBJECTS:hardnested_mmx>
|
||||
$<TARGET_OBJECTS:hardnested_sse2>
|
||||
$<TARGET_OBJECTS:hardnested_avx>
|
||||
$<TARGET_OBJECTS:hardnested_avx2>
|
||||
$<TARGET_OBJECTS:hardnested_avx512>)
|
||||
$<TARGET_OBJECTS:pm3rrg_rdv4_hardnested_mmx>
|
||||
$<TARGET_OBJECTS:pm3rrg_rdv4_hardnested_sse2>
|
||||
$<TARGET_OBJECTS:pm3rrg_rdv4_hardnested_avx>
|
||||
$<TARGET_OBJECTS:pm3rrg_rdv4_hardnested_avx2>
|
||||
$<TARGET_OBJECTS:pm3rrg_rdv4_hardnested_avx512>)
|
||||
else ()
|
||||
message(STATUS "Not building optimised targets")
|
||||
set(SIMD_TARGETS)
|
||||
endif ()
|
||||
|
||||
add_library(hardnested STATIC
|
||||
add_library(pm3rrg_rdv4_hardnested STATIC
|
||||
hardnested/hardnested_bruteforce.c
|
||||
$<TARGET_OBJECTS:hardnested_nosimd>
|
||||
$<TARGET_OBJECTS:pm3rrg_rdv4_hardnested_nosimd>
|
||||
${SIMD_TARGETS})
|
||||
target_include_directories(hardnested PRIVATE
|
||||
set_property(TARGET pm3rrg_rdv4_hardnested PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
target_include_directories(pm3rrg_rdv4_hardnested PRIVATE
|
||||
../../common
|
||||
../../include
|
||||
../src
|
||||
jansson)
|
||||
target_include_directories(hardnested INTERFACE hardnested)
|
||||
target_include_directories(pm3rrg_rdv4_hardnested INTERFACE hardnested)
|
||||
@@ -468,7 +468,7 @@ uint64_t CRACK_STATES_BITSLICED(uint32_t cuid, uint8_t *best_first_bytes, statel
|
||||
}
|
||||
// remember feedback and keystream vectors for later use
|
||||
uint8_t bit = KEYSTREAM_SIZE - ks_idx;
|
||||
if (bit <= next_common_bits) { // if needed and not yet stored
|
||||
if (bit <= MIN(next_common_bits, 7)) { // if needed and not yet stored
|
||||
fbb[bit] = fb_bits;
|
||||
ksb[bit] = ks_bits;
|
||||
par[bit] = parity_bit_vector;
|
||||
@@ -556,29 +556,31 @@ void SetSIMDInstr(SIMDExecInstr instr) {
|
||||
bitslice_test_nonces_function_p = &bitslice_test_nonces_dispatch;
|
||||
}
|
||||
|
||||
static SIMDExecInstr GetSIMDInstr() {
|
||||
SIMDExecInstr instr = SIMD_NONE;
|
||||
static SIMDExecInstr GetSIMDInstr(void) {
|
||||
SIMDExecInstr instr;
|
||||
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
if (__builtin_cpu_supports("avx512f")) instr = SIMD_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) instr = SIMD_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) instr = SIMD_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) instr = SIMD_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) instr = SIMD_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) instr = SIMD_MMX;
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f"))
|
||||
instr = SIMD_AVX512;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2"))
|
||||
instr = SIMD_AVX2;
|
||||
else if (__builtin_cpu_supports("avx"))
|
||||
instr = SIMD_AVX;
|
||||
else if (__builtin_cpu_supports("sse2"))
|
||||
instr = SIMD_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx"))
|
||||
instr = SIMD_MMX;
|
||||
else
|
||||
#endif
|
||||
instr = SIMD_NONE;
|
||||
instr = SIMD_NONE;
|
||||
|
||||
return instr;
|
||||
}
|
||||
|
||||
SIMDExecInstr GetSIMDInstrAuto() {
|
||||
SIMDExecInstr GetSIMDInstrAuto(void) {
|
||||
SIMDExecInstr instr = intSIMDInstr;
|
||||
if (instr == SIMD_AUTO)
|
||||
return GetSIMDInstr();
|
||||
@@ -589,13 +591,12 @@ SIMDExecInstr GetSIMDInstrAuto() {
|
||||
// determine the available instruction set at runtime and call the correct function
|
||||
uint64_t crack_states_bitsliced_dispatch(uint32_t cuid, uint8_t *best_first_bytes, statelist_t *p, uint32_t *keys_found, uint64_t *num_keys_tested, uint32_t nonces_to_bruteforce, uint8_t *bf_test_nonce_2nd_byte, noncelist_t *nonces) {
|
||||
switch (GetSIMDInstrAuto()) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
case SIMD_AVX512:
|
||||
crack_states_bitsliced_function_p = &crack_states_bitsliced_AVX512;
|
||||
break;
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
case SIMD_AVX2:
|
||||
crack_states_bitsliced_function_p = &crack_states_bitsliced_AVX2;
|
||||
break;
|
||||
@@ -609,8 +610,8 @@ uint64_t crack_states_bitsliced_dispatch(uint32_t cuid, uint8_t *best_first_byte
|
||||
crack_states_bitsliced_function_p = &crack_states_bitsliced_MMX;
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
default:
|
||||
case SIMD_AUTO:
|
||||
case SIMD_NONE:
|
||||
crack_states_bitsliced_function_p = &crack_states_bitsliced_NOSIMD;
|
||||
break;
|
||||
}
|
||||
@@ -621,13 +622,12 @@ uint64_t crack_states_bitsliced_dispatch(uint32_t cuid, uint8_t *best_first_byte
|
||||
|
||||
void bitslice_test_nonces_dispatch(uint32_t nonces_to_bruteforce, uint32_t *bf_test_nonce, uint8_t *bf_test_nonce_par) {
|
||||
switch (GetSIMDInstrAuto()) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
case SIMD_AVX512:
|
||||
bitslice_test_nonces_function_p = &bitslice_test_nonces_AVX512;
|
||||
break;
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
case SIMD_AVX2:
|
||||
bitslice_test_nonces_function_p = &bitslice_test_nonces_AVX2;
|
||||
break;
|
||||
@@ -641,8 +641,8 @@ void bitslice_test_nonces_dispatch(uint32_t nonces_to_bruteforce, uint32_t *bf_t
|
||||
bitslice_test_nonces_function_p = &bitslice_test_nonces_MMX;
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
default:
|
||||
case SIMD_AUTO:
|
||||
case SIMD_NONE:
|
||||
bitslice_test_nonces_function_p = &bitslice_test_nonces_NOSIMD;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -52,13 +52,26 @@ THE SOFTWARE.
|
||||
|
||||
#include "hardnested_bruteforce.h" // statelist_t
|
||||
|
||||
#if ( defined (__i386__) || defined (__x86_64__) ) && \
|
||||
( !defined(__APPLE__) || \
|
||||
(defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1)) )
|
||||
# define COMPILER_HAS_SIMD
|
||||
# if defined(COMPILER_HAS_SIMD) && ((__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2))
|
||||
# define COMPILER_HAS_SIMD_AVX512
|
||||
# endif
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
SIMD_AUTO,
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
SIMD_AVX512,
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
SIMD_AVX2,
|
||||
SIMD_AVX,
|
||||
SIMD_SSE2,
|
||||
SIMD_MMX,
|
||||
#endif
|
||||
SIMD_NONE,
|
||||
} SIMDExecInstr;
|
||||
void SetSIMDInstr(SIMDExecInstr instr);
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
//
|
||||
|
||||
#include "hardnested_bitarray_core.h"
|
||||
#include "hardnested_bf_core.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
@@ -305,273 +306,234 @@ count_bitarray_AND4_t *count_bitarray_AND4_function_p = &count_bitarray_AND4_dis
|
||||
|
||||
// determine the available instruction set at runtime and call the correct function
|
||||
uint32_t *malloc_bitarray_dispatch(uint32_t x) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) malloc_bitarray_function_p = &malloc_bitarray_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) malloc_bitarray_function_p = &malloc_bitarray_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) malloc_bitarray_function_p = &malloc_bitarray_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) malloc_bitarray_function_p = &malloc_bitarray_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) malloc_bitarray_function_p = &malloc_bitarray_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) malloc_bitarray_function_p = &malloc_bitarray_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) malloc_bitarray_function_p = &malloc_bitarray_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) malloc_bitarray_function_p = &malloc_bitarray_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) malloc_bitarray_function_p = &malloc_bitarray_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) malloc_bitarray_function_p = &malloc_bitarray_MMX;
|
||||
else
|
||||
#endif
|
||||
malloc_bitarray_function_p = &malloc_bitarray_NOSIMD;
|
||||
malloc_bitarray_function_p = &malloc_bitarray_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
return (*malloc_bitarray_function_p)(x);
|
||||
}
|
||||
|
||||
void free_bitarray_dispatch(uint32_t *x) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) free_bitarray_function_p = &free_bitarray_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) free_bitarray_function_p = &free_bitarray_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) free_bitarray_function_p = &free_bitarray_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) free_bitarray_function_p = &free_bitarray_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) free_bitarray_function_p = &free_bitarray_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) free_bitarray_function_p = &free_bitarray_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) free_bitarray_function_p = &free_bitarray_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) free_bitarray_function_p = &free_bitarray_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) free_bitarray_function_p = &free_bitarray_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) free_bitarray_function_p = &free_bitarray_MMX;
|
||||
else
|
||||
#endif
|
||||
free_bitarray_function_p = &free_bitarray_NOSIMD;
|
||||
free_bitarray_function_p = &free_bitarray_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
(*free_bitarray_function_p)(x);
|
||||
}
|
||||
|
||||
uint32_t bitcount_dispatch(uint32_t a) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) bitcount_function_p = &bitcount_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) bitcount_function_p = &bitcount_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) bitcount_function_p = &bitcount_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) bitcount_function_p = &bitcount_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) bitcount_function_p = &bitcount_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) bitcount_function_p = &bitcount_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) bitcount_function_p = &bitcount_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) bitcount_function_p = &bitcount_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) bitcount_function_p = &bitcount_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) bitcount_function_p = &bitcount_MMX;
|
||||
else
|
||||
#endif
|
||||
bitcount_function_p = &bitcount_NOSIMD;
|
||||
bitcount_function_p = &bitcount_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
return (*bitcount_function_p)(a);
|
||||
}
|
||||
|
||||
uint32_t count_states_dispatch(uint32_t *bitarray) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) count_states_function_p = &count_states_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) count_states_function_p = &count_states_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) count_states_function_p = &count_states_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) count_states_function_p = &count_states_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) count_states_function_p = &count_states_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) count_states_function_p = &count_states_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) count_states_function_p = &count_states_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) count_states_function_p = &count_states_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) count_states_function_p = &count_states_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) count_states_function_p = &count_states_MMX;
|
||||
else
|
||||
#endif
|
||||
count_states_function_p = &count_states_NOSIMD;
|
||||
count_states_function_p = &count_states_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
return (*count_states_function_p)(bitarray);
|
||||
}
|
||||
|
||||
void bitarray_AND_dispatch(uint32_t *A, uint32_t *B) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) bitarray_AND_function_p = &bitarray_AND_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) bitarray_AND_function_p = &bitarray_AND_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) bitarray_AND_function_p = &bitarray_AND_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) bitarray_AND_function_p = &bitarray_AND_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) bitarray_AND_function_p = &bitarray_AND_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) bitarray_AND_function_p = &bitarray_AND_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) bitarray_AND_function_p = &bitarray_AND_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) bitarray_AND_function_p = &bitarray_AND_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) bitarray_AND_function_p = &bitarray_AND_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) bitarray_AND_function_p = &bitarray_AND_MMX;
|
||||
else
|
||||
#endif
|
||||
bitarray_AND_function_p = &bitarray_AND_NOSIMD;
|
||||
bitarray_AND_function_p = &bitarray_AND_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
(*bitarray_AND_function_p)(A, B);
|
||||
}
|
||||
|
||||
void bitarray_low20_AND_dispatch(uint32_t *A, uint32_t *B) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) bitarray_low20_AND_function_p = &bitarray_low20_AND_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) bitarray_low20_AND_function_p = &bitarray_low20_AND_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) bitarray_low20_AND_function_p = &bitarray_low20_AND_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) bitarray_low20_AND_function_p = &bitarray_low20_AND_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) bitarray_low20_AND_function_p = &bitarray_low20_AND_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) bitarray_low20_AND_function_p = &bitarray_low20_AND_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) bitarray_low20_AND_function_p = &bitarray_low20_AND_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) bitarray_low20_AND_function_p = &bitarray_low20_AND_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) bitarray_low20_AND_function_p = &bitarray_low20_AND_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) bitarray_low20_AND_function_p = &bitarray_low20_AND_MMX;
|
||||
else
|
||||
#endif
|
||||
bitarray_low20_AND_function_p = &bitarray_low20_AND_NOSIMD;
|
||||
bitarray_low20_AND_function_p = &bitarray_low20_AND_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
(*bitarray_low20_AND_function_p)(A, B);
|
||||
}
|
||||
|
||||
uint32_t count_bitarray_AND_dispatch(uint32_t *A, uint32_t *B) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) count_bitarray_AND_function_p = &count_bitarray_AND_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) count_bitarray_AND_function_p = &count_bitarray_AND_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) count_bitarray_AND_function_p = &count_bitarray_AND_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) count_bitarray_AND_function_p = &count_bitarray_AND_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) count_bitarray_AND_function_p = &count_bitarray_AND_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) count_bitarray_AND_function_p = &count_bitarray_AND_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) count_bitarray_AND_function_p = &count_bitarray_AND_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) count_bitarray_AND_function_p = &count_bitarray_AND_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) count_bitarray_AND_function_p = &count_bitarray_AND_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) count_bitarray_AND_function_p = &count_bitarray_AND_MMX;
|
||||
else
|
||||
#endif
|
||||
count_bitarray_AND_function_p = &count_bitarray_AND_NOSIMD;
|
||||
count_bitarray_AND_function_p = &count_bitarray_AND_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
return (*count_bitarray_AND_function_p)(A, B);
|
||||
}
|
||||
|
||||
uint32_t count_bitarray_low20_AND_dispatch(uint32_t *A, uint32_t *B) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) count_bitarray_low20_AND_function_p = &count_bitarray_low20_AND_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) count_bitarray_low20_AND_function_p = &count_bitarray_low20_AND_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) count_bitarray_low20_AND_function_p = &count_bitarray_low20_AND_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) count_bitarray_low20_AND_function_p = &count_bitarray_low20_AND_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) count_bitarray_low20_AND_function_p = &count_bitarray_low20_AND_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) count_bitarray_low20_AND_function_p = &count_bitarray_low20_AND_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) count_bitarray_low20_AND_function_p = &count_bitarray_low20_AND_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) count_bitarray_low20_AND_function_p = &count_bitarray_low20_AND_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) count_bitarray_low20_AND_function_p = &count_bitarray_low20_AND_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) count_bitarray_low20_AND_function_p = &count_bitarray_low20_AND_MMX;
|
||||
else
|
||||
#endif
|
||||
count_bitarray_low20_AND_function_p = &count_bitarray_low20_AND_NOSIMD;
|
||||
count_bitarray_low20_AND_function_p = &count_bitarray_low20_AND_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
return (*count_bitarray_low20_AND_function_p)(A, B);
|
||||
}
|
||||
|
||||
void bitarray_AND4_dispatch(uint32_t *A, uint32_t *B, uint32_t *C, uint32_t *D) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) bitarray_AND4_function_p = &bitarray_AND4_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) bitarray_AND4_function_p = &bitarray_AND4_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) bitarray_AND4_function_p = &bitarray_AND4_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) bitarray_AND4_function_p = &bitarray_AND4_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) bitarray_AND4_function_p = &bitarray_AND4_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) bitarray_AND4_function_p = &bitarray_AND4_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) bitarray_AND4_function_p = &bitarray_AND4_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) bitarray_AND4_function_p = &bitarray_AND4_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) bitarray_AND4_function_p = &bitarray_AND4_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) bitarray_AND4_function_p = &bitarray_AND4_MMX;
|
||||
else
|
||||
#endif
|
||||
bitarray_AND4_function_p = &bitarray_AND4_NOSIMD;
|
||||
bitarray_AND4_function_p = &bitarray_AND4_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
(*bitarray_AND4_function_p)(A, B, C, D);
|
||||
}
|
||||
|
||||
void bitarray_OR_dispatch(uint32_t *A, uint32_t *B) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) bitarray_OR_function_p = &bitarray_OR_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) bitarray_OR_function_p = &bitarray_OR_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) bitarray_OR_function_p = &bitarray_OR_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) bitarray_OR_function_p = &bitarray_OR_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) bitarray_OR_function_p = &bitarray_OR_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) bitarray_OR_function_p = &bitarray_OR_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) bitarray_OR_function_p = &bitarray_OR_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) bitarray_OR_function_p = &bitarray_OR_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) bitarray_OR_function_p = &bitarray_OR_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) bitarray_OR_function_p = &bitarray_OR_MMX;
|
||||
else
|
||||
#endif
|
||||
bitarray_OR_function_p = &bitarray_OR_NOSIMD;
|
||||
bitarray_OR_function_p = &bitarray_OR_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
(*bitarray_OR_function_p)(A, B);
|
||||
}
|
||||
|
||||
uint32_t count_bitarray_AND2_dispatch(uint32_t *A, uint32_t *B) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) count_bitarray_AND2_function_p = &count_bitarray_AND2_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) count_bitarray_AND2_function_p = &count_bitarray_AND2_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) count_bitarray_AND2_function_p = &count_bitarray_AND2_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) count_bitarray_AND2_function_p = &count_bitarray_AND2_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) count_bitarray_AND2_function_p = &count_bitarray_AND2_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) count_bitarray_AND2_function_p = &count_bitarray_AND2_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) count_bitarray_AND2_function_p = &count_bitarray_AND2_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) count_bitarray_AND2_function_p = &count_bitarray_AND2_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) count_bitarray_AND2_function_p = &count_bitarray_AND2_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) count_bitarray_AND2_function_p = &count_bitarray_AND2_MMX;
|
||||
else
|
||||
#endif
|
||||
count_bitarray_AND2_function_p = &count_bitarray_AND2_NOSIMD;
|
||||
count_bitarray_AND2_function_p = &count_bitarray_AND2_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
return (*count_bitarray_AND2_function_p)(A, B);
|
||||
}
|
||||
|
||||
uint32_t count_bitarray_AND3_dispatch(uint32_t *A, uint32_t *B, uint32_t *C) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) count_bitarray_AND3_function_p = &count_bitarray_AND3_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) count_bitarray_AND3_function_p = &count_bitarray_AND3_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) count_bitarray_AND3_function_p = &count_bitarray_AND3_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) count_bitarray_AND3_function_p = &count_bitarray_AND3_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) count_bitarray_AND3_function_p = &count_bitarray_AND3_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) count_bitarray_AND3_function_p = &count_bitarray_AND3_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) count_bitarray_AND3_function_p = &count_bitarray_AND3_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) count_bitarray_AND3_function_p = &count_bitarray_AND3_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) count_bitarray_AND3_function_p = &count_bitarray_AND3_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) count_bitarray_AND3_function_p = &count_bitarray_AND3_MMX;
|
||||
else
|
||||
#endif
|
||||
count_bitarray_AND3_function_p = &count_bitarray_AND3_NOSIMD;
|
||||
count_bitarray_AND3_function_p = &count_bitarray_AND3_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
return (*count_bitarray_AND3_function_p)(A, B, C);
|
||||
}
|
||||
|
||||
uint32_t count_bitarray_AND4_dispatch(uint32_t *A, uint32_t *B, uint32_t *C, uint32_t *D) {
|
||||
#if defined (__i386__) || defined (__x86_64__)
|
||||
#if !defined(__APPLE__) || (defined(__APPLE__) && (__clang_major__ > 8 || __clang_major__ == 8 && __clang_minor__ >= 1))
|
||||
#if (__GNUC__ >= 5) && (__GNUC__ > 5 || __GNUC_MINOR__ > 2)
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
if (__builtin_cpu_supports("avx512f")) count_bitarray_AND4_function_p = &count_bitarray_AND4_AVX512;
|
||||
else if (__builtin_cpu_supports("avx2")) count_bitarray_AND4_function_p = &count_bitarray_AND4_AVX2;
|
||||
#else
|
||||
if (__builtin_cpu_supports("avx2")) count_bitarray_AND4_function_p = &count_bitarray_AND4_AVX2;
|
||||
#endif
|
||||
else if (__builtin_cpu_supports("avx")) count_bitarray_AND4_function_p = &count_bitarray_AND4_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) count_bitarray_AND4_function_p = &count_bitarray_AND4_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) count_bitarray_AND4_function_p = &count_bitarray_AND4_MMX;
|
||||
else
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD)
|
||||
if (__builtin_cpu_supports("avx2")) count_bitarray_AND4_function_p = &count_bitarray_AND4_AVX2;
|
||||
else if (__builtin_cpu_supports("avx")) count_bitarray_AND4_function_p = &count_bitarray_AND4_AVX;
|
||||
else if (__builtin_cpu_supports("sse2")) count_bitarray_AND4_function_p = &count_bitarray_AND4_SSE2;
|
||||
else if (__builtin_cpu_supports("mmx")) count_bitarray_AND4_function_p = &count_bitarray_AND4_MMX;
|
||||
else
|
||||
#endif
|
||||
count_bitarray_AND4_function_p = &count_bitarray_AND4_NOSIMD;
|
||||
count_bitarray_AND4_function_p = &count_bitarray_AND4_NOSIMD;
|
||||
|
||||
// call the most optimized function for this CPU
|
||||
return (*count_bitarray_AND4_function_p)(A, B, C, D);
|
||||
|
||||
@@ -433,7 +433,7 @@ static bool read_bench_data(statelist_t *test_candidates) {
|
||||
}
|
||||
|
||||
|
||||
float brute_force_benchmark() {
|
||||
float brute_force_benchmark(void) {
|
||||
statelist_t test_candidates[NUM_BRUTE_FORCE_THREADS];
|
||||
|
||||
test_candidates[0].states[ODD_STATE] = malloc((TEST_BENCH_SIZE + 1) * sizeof(uint32_t));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
add_library(jansson STATIC
|
||||
add_library(pm3rrg_rdv4_jansson STATIC
|
||||
jansson/dump.c
|
||||
jansson/error.c
|
||||
jansson/hashtable.c
|
||||
@@ -9,10 +9,10 @@ add_library(jansson STATIC
|
||||
jansson/strbuffer.c
|
||||
jansson/strconv.c
|
||||
jansson/utf.c
|
||||
jansson/path.c
|
||||
jansson/value.c
|
||||
)
|
||||
|
||||
target_compile_definitions(jansson PRIVATE HAVE_STDINT_H)
|
||||
target_include_directories(jansson INTERFACE jansson)
|
||||
target_compile_options(jansson PRIVATE -Wall -Werror -Wno-unused-function -O3)
|
||||
target_compile_definitions(pm3rrg_rdv4_jansson PRIVATE HAVE_STDINT_H)
|
||||
target_include_directories(pm3rrg_rdv4_jansson INTERFACE jansson)
|
||||
target_compile_options(pm3rrg_rdv4_jansson PRIVATE -Wall -Werror -Wno-unused-function -O3)
|
||||
set_property(TARGET pm3rrg_rdv4_jansson PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
@@ -1,6 +1,6 @@
|
||||
MYSRCPATHS =
|
||||
MYINCLUDES = -I.
|
||||
MYCFLAGS = -Wno-unused-function
|
||||
MYCFLAGS = -Wno-unused-function -Wno-cast-align -Wno-bad-function-cast -Wno-switch-enum
|
||||
MYDEFS = -DHAVE_STDINT_H
|
||||
MYSRCS = \
|
||||
dump.c \
|
||||
@@ -13,7 +13,6 @@ MYSRCS = \
|
||||
strbuffer.c \
|
||||
strconv.c \
|
||||
utf.c \
|
||||
path.c \
|
||||
value.c
|
||||
|
||||
LIB_A = libjansson.a
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
* it under the terms of the MIT license. See LICENSE for details.
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <jansson_private_config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#if HAVE_STDINT_H
|
||||
#ifdef HAVE_STDINT_H
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ static int seed_from_timestamp_and_pid(uint32_t *seed) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static uint32_t generate_seed() {
|
||||
static uint32_t generate_seed(void) {
|
||||
uint32_t seed = 0;
|
||||
int done = 0;
|
||||
|
||||
|
||||
@@ -302,14 +302,6 @@ int json_equal(const json_t *json1, const json_t *json2);
|
||||
json_t *json_copy(json_t *json) JANSSON_ATTRS(warn_unused_result);
|
||||
json_t *json_deep_copy(const json_t *json) JANSSON_ATTRS(warn_unused_result);
|
||||
|
||||
json_t *json_path_get(const json_t *json, const char *path);
|
||||
int json_path_set_new(json_t *json, const char *path, json_t *value, size_t flags, json_error_t *error);
|
||||
|
||||
static JSON_INLINE
|
||||
int json_path_set(json_t *json, const char *path, json_t *value, size_t flags, json_error_t *error) {
|
||||
return json_path_set_new(json, path, json_incref(value), flags, error);
|
||||
}
|
||||
|
||||
/* decoding */
|
||||
|
||||
#define JSON_REJECT_DUPLICATES 0x1
|
||||
|
||||
@@ -1040,8 +1040,6 @@ json_t *json_loadfd(int input, size_t flags, json_error_t *error) {
|
||||
|
||||
json_t *json_load_file(const char *path, size_t flags, json_error_t *error) {
|
||||
json_t *result;
|
||||
FILE *fp;
|
||||
|
||||
jsonp_error_init(error, path);
|
||||
|
||||
if (path == NULL) {
|
||||
@@ -1049,15 +1047,13 @@ json_t *json_load_file(const char *path, size_t flags, json_error_t *error) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
fp = fopen(path, "rb");
|
||||
FILE *fp = fopen(path, "rb");
|
||||
if (!fp) {
|
||||
error_set(error, NULL, json_error_cannot_open_file, "unable to open %s: %s",
|
||||
path, strerror(errno));
|
||||
error_set(error, NULL, json_error_cannot_open_file, "unable to open %s: %s", path, strerror(errno));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
result = json_loadf(fp, flags, error);
|
||||
|
||||
fclose(fp);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
MYSRCPATHS =
|
||||
MYINCLUDES = -I.
|
||||
# Lua lib requires GNU extensions (implicit declarations of functions): -std=gnu99 or -std=gnu11
|
||||
MYCFLAGS =
|
||||
MYCFLAGS = -Wno-cast-align -Wno-bad-function-cast -Wno-switch-enum
|
||||
MYDEFS = -DLUA_COMPAT_ALL $(SYSCFLAGS)
|
||||
MYSRCS = lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c \
|
||||
lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c \
|
||||
|
||||
@@ -197,7 +197,7 @@ static void buffreplace(LexState *ls, char from, char to) {
|
||||
}
|
||||
|
||||
|
||||
#if ANDROID
|
||||
#if defined(ANDROID)
|
||||
#define getlocaldecpoint() '.'
|
||||
#elif !defined(getlocaledecpoint)
|
||||
#define getlocaledecpoint() (localeconv()->decimal_point[0])
|
||||
|
||||
+15
-7
@@ -1,4 +1,4 @@
|
||||
add_library(lua STATIC
|
||||
add_library(pm3rrg_rdv4_lua STATIC
|
||||
liblua/lapi.c
|
||||
liblua/lcode.c
|
||||
liblua/lctype.c
|
||||
@@ -33,16 +33,24 @@ add_library(lua STATIC
|
||||
liblua/linit.c
|
||||
)
|
||||
|
||||
target_compile_definitions(lua PRIVATE LUA_COMPAT_ALL)
|
||||
target_compile_definitions(pm3rrg_rdv4_lua PRIVATE LUA_COMPAT_ALL)
|
||||
|
||||
if (NOT MINGW)
|
||||
if (APPLE)
|
||||
target_compile_definitions(lua PRIVATE LUA_USE_MACOSX)
|
||||
target_compile_definitions(pm3rrg_rdv4_lua PRIVATE LUA_USE_MACOSX)
|
||||
elseif (ANDROID)
|
||||
# Required:
|
||||
add_definitions(-D"getlocaledecpoint\(\)='.'")
|
||||
# Same as for LUA_USE_LINUX except LUA_USE_POSIX and client-specific LUA_USE_READLINE
|
||||
target_compile_definitions(pm3rrg_rdv4_lua PRIVATE LUA_USE_DLOPEN LUA_USE_STRTODHEX LUA_USE_AFORMAT LUA_USE_LONGLONG)
|
||||
# Same as for LUA_USE_POSIX except client-specific LUA_USE_ISATTY. LUA_USE_MKSTEMP is needed.
|
||||
target_compile_definitions(pm3rrg_rdv4_lua PRIVATE LUA_USE_MKSTEMP LUA_USE_POPEN LUA_USE_ULONGJMP LUA_USE_GMTIME_R)
|
||||
else (APPLE)
|
||||
target_compile_definitions(lua PRIVATE LUA_USE_LINUX)
|
||||
target_link_libraries(lua INTERFACE dl)
|
||||
target_compile_definitions(pm3rrg_rdv4_lua PRIVATE LUA_USE_LINUX)
|
||||
target_link_libraries(pm3rrg_rdv4_lua INTERFACE dl)
|
||||
endif (APPLE)
|
||||
endif (NOT MINGW)
|
||||
|
||||
target_include_directories(lua INTERFACE liblua)
|
||||
target_compile_options(lua PRIVATE -Wall -Werror -O3)
|
||||
target_include_directories(pm3rrg_rdv4_lua INTERFACE liblua)
|
||||
target_compile_options(pm3rrg_rdv4_lua PRIVATE -Wall -Werror -O3)
|
||||
set_property(TARGET pm3rrg_rdv4_lua PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
@@ -1,4 +1,4 @@
|
||||
add_library(mbedtls STATIC
|
||||
add_library(pm3rrg_rdv4_mbedtls STATIC
|
||||
../../common/mbedtls/aes.c
|
||||
../../common/mbedtls/asn1parse.c
|
||||
../../common/mbedtls/asn1write.c
|
||||
@@ -44,5 +44,7 @@ add_library(mbedtls STATIC
|
||||
../../common/mbedtls/x509_crt.c
|
||||
)
|
||||
|
||||
target_include_directories(mbedtls PRIVATE ../../common)
|
||||
target_compile_options(mbedtls PRIVATE -Wall -Werror -O3)
|
||||
target_include_directories(pm3rrg_rdv4_mbedtls PRIVATE ../../common)
|
||||
target_include_directories(pm3rrg_rdv4_mbedtls INTERFACE ../../common/mbedtls)
|
||||
target_compile_options(pm3rrg_rdv4_mbedtls PRIVATE -Wall -Werror -O3)
|
||||
set_property(TARGET pm3rrg_rdv4_mbedtls PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
@@ -1,4 +1,4 @@
|
||||
add_library(reveng STATIC
|
||||
add_library(pm3rrg_rdv4_reveng STATIC
|
||||
reveng/bmpbit.c
|
||||
reveng/cli.c
|
||||
reveng/model.c
|
||||
@@ -7,7 +7,11 @@ add_library(reveng STATIC
|
||||
reveng/reveng.c
|
||||
)
|
||||
|
||||
target_compile_definitions(reveng PRIVATE PRESETS)
|
||||
target_include_directories(reveng PRIVATE ../cliparser)
|
||||
target_include_directories(reveng INTERFACE reveng)
|
||||
target_compile_options(reveng PRIVATE -Wall -Werror -O3)
|
||||
target_compile_definitions(pm3rrg_rdv4_reveng PRIVATE PRESETS)
|
||||
target_include_directories(pm3rrg_rdv4_reveng PRIVATE
|
||||
cliparser
|
||||
../src
|
||||
../../include)
|
||||
target_include_directories(pm3rrg_rdv4_reveng INTERFACE reveng)
|
||||
target_compile_options(pm3rrg_rdv4_reveng PRIVATE -Wall -Werror -O3)
|
||||
set_property(TARGET pm3rrg_rdv4_reveng PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
@@ -4,7 +4,7 @@
|
||||
# Add -DPRESETS to compile with preset models (edit config.h)
|
||||
|
||||
MYSRCPATHS =
|
||||
MYINCLUDES = -I../cliparser
|
||||
MYINCLUDES = -I../cliparser -I../../src -I../../../include
|
||||
MYCFLAGS =
|
||||
MYDEFS = -DPRESETS
|
||||
MYSRCS = \
|
||||
@@ -22,6 +22,7 @@ MYCLEANOLDPATH = ../../reveng
|
||||
|
||||
include ../../../Makefile.host
|
||||
|
||||
ifneq ($(SKIPREVENGTEST),1)
|
||||
CLEAN += bmptst
|
||||
|
||||
$(BINDIR)/$(LIB_A): $(BINDIR)/bmptst
|
||||
@@ -31,5 +32,6 @@ $(BINDIR)/bmptst: bmpbit.c config.h reveng.h
|
||||
$(Q)$(CC) $(CFLAGS) -DBMPTST -o $@ $<
|
||||
$(info [=] TEST $@)
|
||||
$(Q)( ./$@ && $(TOUCH) $@ ) || ( $(RM) $@ && $(FALSE) )
|
||||
endif
|
||||
|
||||
.PHONY: all clean
|
||||
@@ -30,6 +30,12 @@
|
||||
#endif
|
||||
#include "reveng.h"
|
||||
|
||||
#ifdef BMPTST
|
||||
# undef fprintf
|
||||
# undef puts
|
||||
# undef fputs
|
||||
#endif
|
||||
|
||||
#if (defined BMPTST) || (BMP_BIT < 32)
|
||||
/* Size in bits of a bmp_t. Not necessarily a power of two. */
|
||||
int bmpbit;
|
||||
|
||||
@@ -97,7 +97,10 @@ int reveng_main(int argc, char *argv[]) {
|
||||
SETBMP();
|
||||
|
||||
// pos=0; --- not in this ver of getopt
|
||||
int err = 0;
|
||||
optind = 1;
|
||||
// Remember to consume always all the option string till getopt returns -1 !
|
||||
// else next invocations will be corrupted
|
||||
do {
|
||||
c = getopt(argc, argv, "?A:BDFGLMP:SVXa:bcdefhi:k:lm:p:q:rstuvw:x:yz");
|
||||
switch (c) {
|
||||
@@ -105,8 +108,8 @@ int reveng_main(int argc, char *argv[]) {
|
||||
case 'a': /* a: bits per character */
|
||||
if ((obperhx = atoi(optarg)) > BMP_BIT) {
|
||||
fprintf(stderr, "%s: argument to -%c must be between 1 and %d\n", myname, c, BMP_BIT);
|
||||
return 0;
|
||||
//exit(EXIT_FAILURE);
|
||||
err = 1;
|
||||
break;
|
||||
}
|
||||
if (c == 'a') ibperhx = obperhx;
|
||||
break;
|
||||
@@ -130,8 +133,8 @@ int reveng_main(int argc, char *argv[]) {
|
||||
case 'v': /* v calculate reversed CRC */
|
||||
if (mode) {
|
||||
fprintf(stderr, "%s: more than one mode switch specified. Use %s -h for help.\n", myname, myname);
|
||||
return 0;
|
||||
//exit(EXIT_FAILURE);
|
||||
err = 1;
|
||||
break;
|
||||
}
|
||||
mode = c;
|
||||
break;
|
||||
@@ -151,8 +154,7 @@ int reveng_main(int argc, char *argv[]) {
|
||||
case '?': /* ? get help / usage */
|
||||
default:
|
||||
usage();
|
||||
return 0;
|
||||
//exit(EXIT_FAILURE);
|
||||
err = 1;
|
||||
break;
|
||||
case 'i': /* i: Init value */
|
||||
pptr = &model.init;
|
||||
@@ -184,12 +186,13 @@ int reveng_main(int argc, char *argv[]) {
|
||||
case 'm': /* m: select preset CRC model */
|
||||
if (!(c = mbynam(&model, optarg))) {
|
||||
fprintf(stderr, "%s: preset model '%s' not found. Use %s -D to list presets.\n", myname, optarg, myname);
|
||||
return 0;
|
||||
//exit(EXIT_FAILURE);
|
||||
err = 1;
|
||||
break;
|
||||
}
|
||||
if (c < 0) {
|
||||
uerror("no preset models available");
|
||||
return 0;
|
||||
err = 1;
|
||||
break;
|
||||
}
|
||||
/* must set width so that parameter to -ipx is not zeroed */
|
||||
width = plen(model.spoly);
|
||||
@@ -246,6 +249,9 @@ ipqx:
|
||||
}
|
||||
} while (c != -1);
|
||||
|
||||
if (err)
|
||||
return 0;
|
||||
|
||||
/* canonicalise the model, so the one we dump is the one we
|
||||
* calculate with (not with -s, spoly may be blank which will
|
||||
* normalise to zero and clear init and xorout.)
|
||||
|
||||
@@ -101,4 +101,10 @@
|
||||
* *
|
||||
*****************************************/
|
||||
|
||||
// Proxmark3 stdout/stderr hooking
|
||||
#include "ui.h"
|
||||
#define fprintf(stream, ...) PrintAndLogEx(INFO, __VA_ARGS__)
|
||||
#define fputs(s, stream) PrintAndLogEx(INFO, "%s", s)
|
||||
#define puts(s) PrintAndLogEx(SUCCESS, "%s", s)
|
||||
|
||||
#endif /* CONFIG_H */
|
||||
@@ -1,4 +1,4 @@
|
||||
add_library(tinycbor STATIC
|
||||
add_library(pm3rrg_rdv4_tinycbor STATIC
|
||||
tinycbor/cborencoder.c
|
||||
tinycbor/cborencoder_close_container_checked.c
|
||||
tinycbor/cborerrorstrings.c
|
||||
@@ -9,6 +9,7 @@ add_library(tinycbor STATIC
|
||||
tinycbor/cborvalidation.c
|
||||
)
|
||||
|
||||
target_include_directories(tinycbor INTERFACE tinycbor)
|
||||
target_include_directories(pm3rrg_rdv4_tinycbor INTERFACE tinycbor)
|
||||
# Strange errors on Mingw when compiling with -O3
|
||||
target_compile_options(tinycbor PRIVATE -Wall -Werror -O2)
|
||||
target_compile_options(pm3rrg_rdv4_tinycbor PRIVATE -Wall -Werror -O2)
|
||||
set_property(TARGET pm3rrg_rdv4_tinycbor PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
@@ -1,7 +1,7 @@
|
||||
MYSRCPATHS =
|
||||
MYINCLUDES =
|
||||
# Strange errors on Mingw when compiling with C99
|
||||
MYCFLAGS =
|
||||
MYCFLAGS = -Wno-bad-function-cast -Wno-redundant-decls -Wno-incompatible-pointer-types-discards-qualifiers -Wno-discarded-qualifiers -Wno-unknown-warning-option -Wno-maybe-uninitialized -Wno-conversion
|
||||
MYDEFS =
|
||||
MYSRCS = \
|
||||
cborencoder.c \
|
||||
@@ -18,7 +18,4 @@ LIB_A = tinycbor.a
|
||||
# Transition: remove old directories and objects
|
||||
MYCLEANOLDPATH = ../../tinycbor
|
||||
|
||||
# Strange errors on Mingw when compiling with -O3
|
||||
CFLAGS ?= -Wall -Werror -O2
|
||||
|
||||
include ../../../Makefile.host
|
||||
@@ -555,8 +555,11 @@ enum CborPrettyFlags {
|
||||
CborPrettyDefaultFlags = CborPrettyIndicateIndeterminateLength
|
||||
};
|
||||
|
||||
/* cf https://sourceforge.net/p/mingw-w64/wiki2/gnu%20printf/ */
|
||||
typedef CborError(*CborStreamFunction)(void *token, const char *fmt, ...)
|
||||
#ifdef __GNUC__
|
||||
#if defined(__MINGW32__) || defined(__MINGW64__)
|
||||
__attribute__((format(__MINGW_PRINTF_FORMAT, 2, 3)));
|
||||
#elif defined(__GNUC__)
|
||||
__attribute__((__format__(printf, 2, 3)))
|
||||
#endif
|
||||
;
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__ || defined(__ANDROID__) || defined(ANDROID)
|
||||
#if defined(__APPLE__) || defined(__ANDROID__) || defined(ANDROID)
|
||||
typedef int RetType;
|
||||
typedef int LenType;
|
||||
#elif __GLIBC__
|
||||
@@ -102,7 +102,7 @@ FILE *open_memstream(char **bufptr, size_t *lenptr) {
|
||||
*bufptr = NULL;
|
||||
*lenptr = 0;
|
||||
|
||||
#ifdef __APPLE__ || defined(__ANDROID__) || defined(ANDROID)
|
||||
#if defined(__APPLE__) || defined(__ANDROID__) || defined(ANDROID)
|
||||
return funopen(b, NULL, write_to_buffer, NULL, close_buffer);
|
||||
#elif __GLIBC__
|
||||
static const cookie_io_functions_t vtable = {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
add_library(pm3rrg_rdv4_whereami STATIC whereami/whereami.c)
|
||||
|
||||
target_compile_definitions(pm3rrg_rdv4_whereami PRIVATE WAI_PM3_TUNED)
|
||||
target_include_directories(pm3rrg_rdv4_whereami INTERFACE whereami)
|
||||
target_compile_options(pm3rrg_rdv4_whereami PRIVATE -Wall -Werror -O3)
|
||||
set_property(TARGET pm3rrg_rdv4_whereami PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
@@ -0,0 +1,9 @@
|
||||
MYSRCPATHS =
|
||||
MYINCLUDES =
|
||||
MYCFLAGS =
|
||||
MYDEFS = -DWAI_PM3_TUNED
|
||||
MYSRCS = whereami.c
|
||||
|
||||
LIB_A = libwhereami.a
|
||||
|
||||
include ../../../Makefile.host
|
||||
@@ -3,9 +3,7 @@
|
||||
// by Gregory Pakosz (@gpakosz)
|
||||
// https://github.com/gpakosz/whereami
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#ifdef WAI_PM3_TUNED
|
||||
|
||||
#include "whereami.h"
|
||||
|
||||
@@ -14,6 +12,19 @@ extern "C" {
|
||||
#define _DEFAULT_SOURCE
|
||||
#endif
|
||||
|
||||
#else // WAI_PM3_TUNED
|
||||
|
||||
// in case you want to #include "whereami.c" in a larger compilation unit
|
||||
#if !defined(WHEREAMI_H)
|
||||
#include <whereami.h>
|
||||
#endif
|
||||
|
||||
#endif // WAI_PM3_TUNED
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if !defined(WAI_MALLOC) || !defined(WAI_FREE) || !defined(WAI_REALLOC)
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
@@ -50,11 +61,14 @@ extern "C" {
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(push, 3)
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#include <intrin.h>
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
@@ -123,36 +137,36 @@ static int WAI_PREFIX(getModulePath_)(HMODULE module, char *out, int capacity, i
|
||||
return length;
|
||||
}
|
||||
|
||||
WAI_NOINLINE
|
||||
WAI_FUNCSPEC
|
||||
WAI_NOINLINE WAI_FUNCSPEC
|
||||
int WAI_PREFIX(getExecutablePath)(char *out, int capacity, int *dirname_length) {
|
||||
return WAI_PREFIX(getModulePath_)(NULL, out, capacity, dirname_length);
|
||||
}
|
||||
|
||||
// GetModuleHandleEx() is not available on old mingw environments. We don't need getModulePath() yet.
|
||||
// Sacrifice it for the time being to improve backwards compatibility
|
||||
/* WAI_NOINLINE
|
||||
WAI_FUNCSPEC
|
||||
int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length)
|
||||
{
|
||||
HMODULE module;
|
||||
int length = -1;
|
||||
#ifndef WAI_PM3_TUNED
|
||||
|
||||
WAI_NOINLINE WAI_FUNCSPEC
|
||||
int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
|
||||
HMODULE module;
|
||||
int length = -1;
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4054)
|
||||
#endif
|
||||
if (GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, (LPCTSTR)WAI_RETURN_ADDRESS(), &module))
|
||||
if (GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, (LPCTSTR)WAI_RETURN_ADDRESS(), &module))
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
{
|
||||
length = WAI_PREFIX(getModulePath_)(module, out, capacity, dirname_length);
|
||||
}
|
||||
{
|
||||
length = WAI_PREFIX(getModulePath_)(module, out, capacity, dirname_length);
|
||||
}
|
||||
|
||||
return length;
|
||||
return length;
|
||||
}
|
||||
*/
|
||||
|
||||
#endif // WAI_PM3_TUNED
|
||||
|
||||
#elif defined(__linux__) || defined(__CYGWIN__) || defined(__sun) || defined(WAI_USE_PROC_SELF_EXE)
|
||||
|
||||
@@ -228,14 +242,14 @@ int WAI_PREFIX(getExecutablePath)(char *out, int capacity, int *dirname_length)
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
WAI_NOINLINE
|
||||
WAI_FUNCSPEC
|
||||
#ifndef WAI_PM3_TUNED
|
||||
|
||||
WAI_NOINLINE WAI_FUNCSPEC
|
||||
int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
|
||||
int length = -1;
|
||||
FILE *maps = NULL;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < WAI_PROC_SELF_MAPS_RETRY; ++i) {
|
||||
for (int r = 0; r < WAI_PROC_SELF_MAPS_RETRY; ++r) {
|
||||
maps = fopen(WAI_PROC_SELF_MAPS, "r");
|
||||
if (!maps)
|
||||
break;
|
||||
@@ -252,8 +266,8 @@ int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
|
||||
if (!fgets(buffer, sizeof(buffer), maps))
|
||||
break;
|
||||
|
||||
if (sscanf(buffer, "%" SCNx64 "-%" SCNx64 " %s %" SCNx64 " %x:%x %u %s\n", &low, &high, perms, &offset, &major, &minor, &inode, path) == 8) {
|
||||
uint64_t addr = (uint64_t)(uintptr_t)WAI_RETURN_ADDRESS();
|
||||
if (sscanf(buffer, "%" PRIx64 "-%" PRIx64 " %s %" PRIx64 " %x:%x %u %s\n", &low, &high, perms, &offset, &major, &minor, &inode, path) == 8) {
|
||||
uint64_t addr = (uintptr_t)WAI_RETURN_ADDRESS();
|
||||
if (low <= addr && addr <= high) {
|
||||
char *resolved;
|
||||
|
||||
@@ -299,9 +313,11 @@ int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
|
||||
memcpy(out, resolved, length);
|
||||
|
||||
if (dirname_length) {
|
||||
for (int j = length - 1; j >= 0; --j) {
|
||||
if (out[j] == '/') {
|
||||
*dirname_length = j;
|
||||
int i;
|
||||
|
||||
for (i = length - 1; i >= 0; --i) {
|
||||
if (out[i] == '/') {
|
||||
*dirname_length = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -325,6 +341,7 @@ int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
|
||||
|
||||
return length;
|
||||
}
|
||||
#endif // WAI_PM3_TUNED
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
|
||||
@@ -380,8 +397,9 @@ int WAI_PREFIX(getExecutablePath)(char *out, int capacity, int *dirname_length)
|
||||
return length;
|
||||
}
|
||||
|
||||
WAI_NOINLINE
|
||||
WAI_FUNCSPEC
|
||||
#ifndef WAI_PM3_TUNED
|
||||
|
||||
WAI_NOINLINE WAI_FUNCSPEC
|
||||
int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
|
||||
char buffer[PATH_MAX];
|
||||
char *resolved = NULL;
|
||||
@@ -418,6 +436,8 @@ int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
|
||||
return length;
|
||||
}
|
||||
|
||||
#endif // WAI_PM3_TUNED
|
||||
|
||||
#elif defined(__QNXNTO__)
|
||||
|
||||
#include <limits.h>
|
||||
@@ -474,6 +494,8 @@ int WAI_PREFIX(getExecutablePath)(char *out, int capacity, int *dirname_length)
|
||||
return length;
|
||||
}
|
||||
|
||||
#ifndef WAI_PM3_TUNED
|
||||
|
||||
WAI_FUNCSPEC
|
||||
int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
|
||||
char buffer[PATH_MAX];
|
||||
@@ -511,11 +533,12 @@ int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
|
||||
return length;
|
||||
}
|
||||
|
||||
#endif // WAI_PM3_TUNED
|
||||
|
||||
#elif defined(__DragonFly__) || defined(__FreeBSD__) || \
|
||||
defined(__FreeBSD_kernel__) || defined(__NetBSD__)
|
||||
|
||||
#include <limits.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
@@ -531,8 +554,8 @@ int WAI_PREFIX(getExecutablePath)(char *out, int capacity, int *dirname_length)
|
||||
int length = -1;
|
||||
|
||||
for (;;) {
|
||||
#ifdef KERN_PROC_ARGV
|
||||
int mib[4] = { CTL_KERN, KERN_PROC_ARGS, getpid(), KERN_PROC_ARGV };
|
||||
#if defined(__NetBSD__)
|
||||
int mib[4] = { CTL_KERN, KERN_PROC_ARGS, -1, KERN_PROC_PATHNAME };
|
||||
#else
|
||||
int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 };
|
||||
#endif
|
||||
@@ -570,8 +593,9 @@ int WAI_PREFIX(getExecutablePath)(char *out, int capacity, int *dirname_length)
|
||||
return length;
|
||||
}
|
||||
|
||||
WAI_NOINLINE
|
||||
WAI_FUNCSPEC
|
||||
#ifndef WAI_PM3_TUNED
|
||||
|
||||
WAI_NOINLINE WAI_FUNCSPEC
|
||||
int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
|
||||
char buffer[PATH_MAX];
|
||||
char *resolved = NULL;
|
||||
@@ -608,6 +632,8 @@ int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
|
||||
return length;
|
||||
}
|
||||
|
||||
#endif // WAI_PM3_TUNED
|
||||
|
||||
#else
|
||||
|
||||
#error unsupported platform
|
||||
File renamed without changes.
@@ -1,12 +0,0 @@
|
||||
add_library(z STATIC
|
||||
../../common/zlib/deflate.c
|
||||
../../common/zlib/adler32.c
|
||||
../../common/zlib/trees.c
|
||||
../../common/zlib/zutil.c
|
||||
../../common/zlib/inflate.c
|
||||
../../common/zlib/inffast.c
|
||||
../../common/zlib/inftrees.c
|
||||
)
|
||||
|
||||
target_compile_definitions(z PRIVATE Z_SOLO NO_GZIP ZLIB_PM3_TUNED)
|
||||
target_compile_options(z PRIVATE -Wall -Werror -O3)
|
||||
@@ -605,6 +605,7 @@ d58023ba2bdc # charlie
|
||||
62ced42a6d87 # charlie
|
||||
2548a443df28 # charlie
|
||||
2ed3b15e7c0f # charlie
|
||||
f66224ee1e89 # charlie
|
||||
#
|
||||
60012e9ba3fa
|
||||
#
|
||||
@@ -741,7 +742,6 @@ D3A297DC2698
|
||||
9EA3387A63C1
|
||||
A3FAA6DAFF67
|
||||
A7141147D430
|
||||
AAFB06045877
|
||||
ACFFFFFFFFFF
|
||||
AFCEF64C9913
|
||||
B27ADDFB64B0
|
||||
@@ -763,7 +763,6 @@ FD8705E721B0
|
||||
00ada2cd516d
|
||||
#
|
||||
#
|
||||
D3F7D3F7D3F7
|
||||
##
|
||||
237a4d0d9119
|
||||
0ed7846c2bc9
|
||||
@@ -1068,7 +1067,6 @@ a2a3cca2a3cc
|
||||
385efa542907
|
||||
3864fcba5937
|
||||
3f3865fccb69
|
||||
5c8ff9990da2
|
||||
6291b3860fc8
|
||||
63fca9492f38
|
||||
863fcb959373
|
||||
@@ -1114,7 +1112,6 @@ fe04ecfe5577
|
||||
5a7a52d5e20d # Bosch Solution 6000
|
||||
#
|
||||
# Found in TagInfo app
|
||||
8A19D40CF2B5 # Hotel key card key
|
||||
C1E51C63B8F5 # RATB key
|
||||
1DB710648A65
|
||||
18F34C92A56E # E-GO card key
|
||||
@@ -24,6 +24,8 @@ A5B4C3D2
|
||||
575F4F4B
|
||||
#
|
||||
50520901
|
||||
# default PROX
|
||||
50524F58
|
||||
# Default pwd, simple:
|
||||
00000000
|
||||
11111111
|
||||
|
||||
@@ -9,7 +9,7 @@ local floor = math.floor
|
||||
|
||||
copyright = ''
|
||||
author = "Iceman"
|
||||
version = 'v1.0.2'
|
||||
version = 'v1.0.3'
|
||||
desc =[[
|
||||
This script will program a T55x7 TAG with a configuration and four blocks of data.
|
||||
It will then try to detect and read back those block data and compare if read data matches the expected data.
|
||||
@@ -31,12 +31,17 @@ testsuit for T55XX commands demodulation
|
||||
]]
|
||||
example = [[
|
||||
1. script run test_t55x7
|
||||
2. script run test_t55x7 -t FSK2A
|
||||
3. script run test_t55x7 -t PSK1
|
||||
]]
|
||||
usage = [[
|
||||
script run test_t55x7 [-h]
|
||||
script run test_t55x7 [-h] [-t <modulation type>
|
||||
]]
|
||||
arguments = [[
|
||||
-h this help
|
||||
-t (optional, defaults to ASK) 'PSK1', 'PSK2', 'PSK3',
|
||||
'FSK1', 'FSK2', 'FSK1A', 'FSK2A',
|
||||
'ASK', 'BI'
|
||||
]]
|
||||
|
||||
local DEBUG = true -- the debug flag
|
||||
@@ -303,9 +308,11 @@ local function main(args)
|
||||
print( string.rep('--',20) )
|
||||
print( string.rep('--',20) )
|
||||
|
||||
local modulation_type = 'ASK'
|
||||
-- Arguments for the script
|
||||
for o, arg in getopt.getopt(args, 'h') do
|
||||
for o, arg in getopt.getopt(args, 'ht:') do
|
||||
if o == 'h' then return help() end
|
||||
if o == 't' then modulation_type = arg end
|
||||
end
|
||||
|
||||
core.clearCommandBuffer()
|
||||
@@ -313,7 +320,8 @@ local function main(args)
|
||||
|
||||
-- Adjust this table to set which configurations should be tested
|
||||
-- local test_modes = { 'PSK1', 'PSK2', 'PSK3', 'FSK1', 'FSK2', 'FSK1A', 'FSK2A', 'ASK', 'BI' }
|
||||
local test_modes = { 'ASK' }
|
||||
--local test_modes = { 'PSK1' }
|
||||
local test_modes = { modulation_type }
|
||||
|
||||
for _ = 1, #test_modes do
|
||||
res = WipeCard()
|
||||
|
||||
@@ -6,7 +6,7 @@ local ansicolors = require('ansicolors')
|
||||
|
||||
copyright = ''
|
||||
author = 'Iceman'
|
||||
version = 'v1.0.2'
|
||||
version = 'v1.0.3'
|
||||
desc = [[
|
||||
This script will program a T55x7 TAG with the configuration: block 0x00 data 0x00088040
|
||||
The outlined procedure is as following:
|
||||
@@ -31,7 +31,6 @@ In all 12 individual test for the PSK demod
|
||||
]]
|
||||
example = [[
|
||||
1. script run test_t55x7_psk
|
||||
2. script run test_t55x7_psk -o
|
||||
]]
|
||||
usage = [[
|
||||
script run test_t55x7_psk [-h]
|
||||
|
||||
@@ -7,15 +7,15 @@ local ansicolors = require('ansicolors')
|
||||
|
||||
copyright = ''
|
||||
author = 'Iceman'
|
||||
version = 'v1.0.2'
|
||||
version = 'v1.0.3'
|
||||
desc = [[
|
||||
This script will load several traces files in ../traces/ folder and do
|
||||
This script will load several traces files in current working directory/traces/ folder and do
|
||||
"data load"
|
||||
"lf search 1 u"
|
||||
|
||||
The following tracefiles will be loaded:
|
||||
em*.pm3
|
||||
m*.pm3
|
||||
modulation*.pm3
|
||||
]]
|
||||
example = [[
|
||||
1. script run tracetest
|
||||
@@ -78,8 +78,10 @@ local function main(args)
|
||||
print( string.rep('--',20) )
|
||||
|
||||
local cmdDataLoad = 'data load %s';
|
||||
local tracesEM = "find '../traces/' -iname 'em*.pm3' -type f"
|
||||
local tracesMOD = "find '../traces/' -iname 'm*.pm3' -type f"
|
||||
local cwd = core.cwd();
|
||||
|
||||
local tracesEM = "find '"..cwd.."/traces/ ' -iname 'em*.pm3' -type f"
|
||||
local tracesMOD = "find '"..cwd.."/traces/' -iname 'modulation*.pm3' -type f"
|
||||
|
||||
local write2File = false
|
||||
local outputTemplate = os.date('testtest_%Y-%m-%d_%H%M%S')
|
||||
@@ -100,7 +102,7 @@ local function main(args)
|
||||
end
|
||||
p.close();
|
||||
|
||||
-- Find a set of traces staring with MOD
|
||||
-- Find a set of traces staring with MODULATION
|
||||
p = assert( io.popen(tracesMOD) )
|
||||
for file in p:lines() do
|
||||
table.insert(files, file)
|
||||
|
||||
Executable
+99
@@ -0,0 +1,99 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# findbits.py - find Binary, Octal, Decimal or Hex number in bitstream
|
||||
#
|
||||
# Adam Laurie <adam@algroup.co.uk>
|
||||
# http://rfidiot.org/
|
||||
#
|
||||
# This code is copyright (c) Adam Laurie, 2009, All rights reserved.
|
||||
# For non-commercial use only, the following terms apply - for all other
|
||||
# uses, please contact the author:
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
# invert binary string
|
||||
def invert(data):
|
||||
return ''.join('0' if c == '1' else '1' for c in data)
|
||||
|
||||
# do the actual search
|
||||
def search(target,data):
|
||||
location = data.find(target)
|
||||
if location >= 0:
|
||||
print('*** Match at bit {:d}: {}<{}>{}'.format(location, data[:location],target,data[location+len(target):]))
|
||||
else:
|
||||
print('Not found')
|
||||
|
||||
# convert integer to binary string
|
||||
def binstring(number):
|
||||
return bin(number)[2:] if number > 0 else ''
|
||||
|
||||
# reverse string order
|
||||
def stringreverse(data):
|
||||
return data[::-1]
|
||||
|
||||
# match forward, backward and inverted
|
||||
def domatch(binary,number):
|
||||
reversed= stringreverse(number)
|
||||
inverted= invert(binary)
|
||||
|
||||
print(' Forward: (%s) ' % number, end = '')
|
||||
search(binary,number)
|
||||
print(' Reverse: (%s) ' % reversed, end = '')
|
||||
search(binary,reversed)
|
||||
print(' Inverse: (%s) ' % inverted)
|
||||
print(' Forward: (%s) ' % number, end = '')
|
||||
search(inverted,number)
|
||||
print(' Reverse: (%s) ' % reversed, end = '')
|
||||
search(inverted,reversed)
|
||||
|
||||
def main():
|
||||
if(len(sys.argv) < 3):
|
||||
print("""
|
||||
\t{0} - Search bitstream for a known number
|
||||
|
||||
Usage: {0} <NUMBER> <BITSTREAM>
|
||||
|
||||
\tNUMBER will be converted to it\'s BINARY equivalent for all valid
|
||||
\tinstances of BINARY, OCTAL, DECIMAL and HEX, and the bitstream
|
||||
\tand it\'s inverse will be searched for a pattern match. Note that
|
||||
\tNUMBER must be specified in BINARY to match leading zeros.
|
||||
|
||||
Example:
|
||||
|
||||
\t{0} 73 0110010101110011
|
||||
""".format(sys.argv[0]))
|
||||
os._exit(True)
|
||||
|
||||
bases= {
|
||||
2:'BINARY',
|
||||
8:'OCTAL',
|
||||
10:'DECIMAL',
|
||||
16:'HEX',
|
||||
}
|
||||
|
||||
for base, base_name in sorted(bases.items()):
|
||||
try:
|
||||
number= int(sys.argv[1],base)
|
||||
print('\nTrying ' + base_name)
|
||||
# do BINARY as specified to preserve leading zeros
|
||||
if base == 2:
|
||||
domatch(sys.argv[1],sys.argv[2])
|
||||
else:
|
||||
domatch(binstring(number),sys.argv[2])
|
||||
except:
|
||||
continue
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@@ -0,0 +1,4 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
print("SP %s" % sys.path)
|
||||
@@ -0,0 +1,78 @@
|
||||
# This code is contributed by
|
||||
# Shubham Singh(SHUBHAMSINGH10)
|
||||
# 2020, modified (@iceman1001)
|
||||
|
||||
import sys
|
||||
|
||||
# Python3 program to illustrate Compute the
|
||||
# parity of a number using XOR
|
||||
# Generating the look-up table while pre-processing
|
||||
def P2(n, table):
|
||||
table.extend([n, n ^ 1, n ^ 1, n])
|
||||
def P4(n, table):
|
||||
return (P2(n, table), P2(n ^ 1, table),
|
||||
P2(n ^ 1, table), P2(n, table))
|
||||
def P6(n, table):
|
||||
return (P4(n, table), P4(n ^ 1, table),
|
||||
P4(n ^ 1, table), P4(n, table))
|
||||
def LOOK_UP(table):
|
||||
return (P6(0, table), P6(1, table),
|
||||
P6(1, table), P6(0, table))
|
||||
|
||||
# LOOK_UP is the macro expansion to generate the table
|
||||
table = [0] * 256
|
||||
LOOK_UP(table)
|
||||
|
||||
# Function to find the parity
|
||||
def Parity(num) :
|
||||
# Number is considered to be of 32 bits
|
||||
max = 16
|
||||
|
||||
# Dividing the number o 8-bit
|
||||
# chunks while performing X-OR
|
||||
while (max >= 8):
|
||||
num = num ^ (num >> max)
|
||||
max = max // 2
|
||||
|
||||
# Masking the number with 0xff (11111111)
|
||||
# to produce valid 8-bit result
|
||||
return table[num & 0xff]
|
||||
|
||||
def main():
|
||||
if(len(sys.argv) < 2):
|
||||
print("""
|
||||
\t{0} - Calculate parity of a given number
|
||||
|
||||
Usage: {0} <2,10,16> <number>
|
||||
|
||||
\t Specify type as in 2 Bin, 10 Decimal, 16 Hex, and number in that particular format
|
||||
\t number can only be 32bit long.
|
||||
|
||||
Example:
|
||||
|
||||
\t{0} 10 1234
|
||||
|
||||
Should produce the output:
|
||||
|
||||
\tOdd parity\n""".format(sys.argv[0]))
|
||||
return 0
|
||||
|
||||
|
||||
numtype= int(sys.argv[1], 10)
|
||||
print("numtype: {0}".format(numtype))
|
||||
input= int(sys.argv[2], numtype)
|
||||
print("num: {0} 0x{0:X}".format(input))
|
||||
|
||||
#num = "001111100010100011101010111101011110"
|
||||
# Result is 1 for odd parity
|
||||
# 0 for even parity
|
||||
# result = Parity( int(input, numtype) )
|
||||
result = Parity(input)
|
||||
print("Odd parity") if result else print("Even parity")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
||||
|
||||
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
'''
|
||||
# Andrei Costin <zveriu@gmail.com>, 2011
|
||||
# pm3_eml2mfd.py
|
||||
# Converts PM3 Mifare Classic emulator EML text file to MFD binary dump file
|
||||
'''
|
||||
|
||||
import sys
|
||||
import binascii
|
||||
|
||||
def main(argv):
|
||||
argc = len(argv)
|
||||
if argc < 3:
|
||||
print('Usage:', argv[0], 'input.eml output.mfd')
|
||||
return 1
|
||||
|
||||
with open(argv[1], "r") as file_inp, open(argv[2], "wb") as file_out:
|
||||
for line in file_inp:
|
||||
line = line.rstrip('\n').rstrip('\r')
|
||||
print(line)
|
||||
data = binascii.unhexlify(line)
|
||||
file_out.write(data)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main(sys.argv)
|
||||
Executable
+51
@@ -0,0 +1,51 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from tempfile import mkdtemp
|
||||
from shutil import rmtree
|
||||
from string import hexdigits
|
||||
import unittest, os
|
||||
import pm3_eml2mfd, pm3_mfd2eml
|
||||
|
||||
class TestEmlMfd(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.tmpdir = mkdtemp()
|
||||
|
||||
def tearDown(self):
|
||||
rmtree(self.tmpdir)
|
||||
|
||||
EML2MFD_TESTCASES = [
|
||||
('', ''),
|
||||
("41424344\r\n45464748\n494A4B4C\n", "ABCDEFGHIJKL")
|
||||
]
|
||||
def test_eml2mfd(self):
|
||||
self.three_argument_test(pm3_eml2mfd.main, self.EML2MFD_TESTCASES)
|
||||
|
||||
def test_mfd2eml(self):
|
||||
self.three_argument_test(pm3_mfd2eml.main,
|
||||
map(reversed, self.EML2MFD_TESTCASES), c14n=hex_c14n)
|
||||
|
||||
def three_argument_test(self, operation, cases, c14n=str):
|
||||
for case_input, case_output in cases:
|
||||
try:
|
||||
inp_name = os.path.join(self.tmpdir, 'input')
|
||||
out_name = os.path.join(self.tmpdir, 'output')
|
||||
with open(inp_name, 'w') as in_file:
|
||||
in_file.write(case_input)
|
||||
operation(['', inp_name, out_name])
|
||||
with open(out_name, 'r') as out_file:
|
||||
self.assertEqual(c14n(case_output), c14n(out_file.read()))
|
||||
finally:
|
||||
for file_name in inp_name, out_name:
|
||||
if os.path.exists(file_name):
|
||||
os.remove(file_name)
|
||||
|
||||
|
||||
def hex_c14n(inp):
|
||||
"""
|
||||
Canonicalizes the input string by removing non-hexadecimal
|
||||
characters and making everything uppercase
|
||||
"""
|
||||
return ''.join(c.upper() for c in inp if c in hexdigits)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
'''
|
||||
# Andrei Costin <zveriu@gmail.com>, 2011
|
||||
# pm3_eml2mfd.py
|
||||
# Converts PM3 Mifare Classic MFD binary dump file to emulator EML text file
|
||||
'''
|
||||
import sys
|
||||
|
||||
READ_BLOCKSIZE = 16
|
||||
|
||||
def main(argv):
|
||||
argc = len(argv)
|
||||
if argc < 3:
|
||||
print('Usage:', argv[0], 'input.mfd output.eml')
|
||||
return 1
|
||||
|
||||
with open(argv[1], "rb") as file_inp, open(argv[2], "w") as file_out:
|
||||
while True:
|
||||
byte_s = file_inp.read(READ_BLOCKSIZE)
|
||||
if not byte_s:
|
||||
break
|
||||
hex_char_repr = byte_s.hex()
|
||||
file_out.write(hex_char_repr)
|
||||
file_out.write("\n")
|
||||
|
||||
if __name__ == '__main__':
|
||||
main(sys.argv)
|
||||
Executable
+82
@@ -0,0 +1,82 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
### Parameters
|
||||
# Sound output parameters
|
||||
volume = 1.0
|
||||
sample_buf_size = 44
|
||||
sampling_freq = 44100 #Hz
|
||||
|
||||
# Frequency generator parameters
|
||||
min_freq = 200 #Hz
|
||||
max_freq = 2000 #Hz
|
||||
|
||||
# Proxmark3 parameters
|
||||
pm3_client="/usr/local/bin/proxmark3"
|
||||
pm3_reader_dev_file="/dev/ttyACM0"
|
||||
pm3_tune_cmd="hf tune"
|
||||
|
||||
|
||||
### Modules
|
||||
import numpy
|
||||
import pyaudio
|
||||
from select import select
|
||||
from subprocess import Popen, DEVNULL, PIPE
|
||||
|
||||
|
||||
### Main program
|
||||
p = pyaudio.PyAudio()
|
||||
|
||||
# For paFloat32 sample values must be in range [-1.0, 1.0]
|
||||
stream = p.open(format=pyaudio.paFloat32,
|
||||
channels=1,
|
||||
rate=sampling_freq,
|
||||
output=True)
|
||||
|
||||
# Initial voltage to frequency values
|
||||
min_v = 100.0
|
||||
max_v = 0.0
|
||||
v = 0
|
||||
out_freq = min_freq
|
||||
|
||||
# Spawn the Proxmark3 client
|
||||
pm3_proc = Popen([pm3_client, pm3_reader_dev_file, "-c", pm3_tune_cmd],
|
||||
bufsize=0, env={}, stdin=DEVNULL, stdout=PIPE, stderr=DEVNULL)
|
||||
mv_recbuf = ""
|
||||
|
||||
# Read voltages from the Proxmark3, generate the sine wave, output to soundcard
|
||||
sample_buf = [0.0 for x in range(0, sample_buf_size)]
|
||||
i = 0
|
||||
sinev = 0
|
||||
while True:
|
||||
|
||||
# Read Proxmark3 client's stdout and extract voltage values
|
||||
if(select([pm3_proc.stdout], [], [], 0)[0]):
|
||||
|
||||
b = pm3_proc.stdout.read(256).decode("ascii")
|
||||
if "Done" in b:
|
||||
break;
|
||||
for c in b:
|
||||
if c in "0123456789 mV":
|
||||
mv_recbuf += c
|
||||
else:
|
||||
mv_recbuf = ""
|
||||
if mv_recbuf[-3:] == " mV":
|
||||
v = int(mv_recbuf[:-3]) / 1000
|
||||
if v < min_v:
|
||||
min_v = v - 0.001
|
||||
if v > max_v:
|
||||
max_v = v
|
||||
|
||||
# Recalculate the audio frequency to generate
|
||||
out_freq = (max_freq - min_freq) * (max_v - v) / (max_v - min_v) \
|
||||
+ min_freq
|
||||
|
||||
# Generate the samples and write them to the soundcard
|
||||
sinevs = out_freq / sampling_freq * numpy.pi * 2
|
||||
sample_buf[i] = sinev
|
||||
sinev += sinevs
|
||||
sinev = sinev if sinev < numpy.pi * 2 else sinev - numpy.pi * 2
|
||||
i = (i + 1) % sample_buf_size
|
||||
if not i:
|
||||
stream.write((numpy.sin(sample_buf) * volume).
|
||||
astype(numpy.float32).tobytes())
|
||||
Executable
+51
@@ -0,0 +1,51 @@
|
||||
# xorcheck.py - find xor values for 8-bit LRC
|
||||
#
|
||||
# Adam Laurie <adam@algroup.co.uk>
|
||||
# http://rfidiot.org/
|
||||
#
|
||||
# This code is copyright (c) Adam Laurie, 2009, All rights reserved.
|
||||
# For non-commercial use only, the following terms apply - for all other
|
||||
# uses, please contact the author:
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# 2020, Modified (@iceman1001)
|
||||
|
||||
import sys
|
||||
|
||||
def main():
|
||||
if(len(sys.argv) < 3):
|
||||
print("""
|
||||
\t{0} - Generate final byte for XOR LRC
|
||||
|
||||
Usage: {0} <ID Byte1> <ID Byte2> ... <LRC>
|
||||
|
||||
\tSpecifying the bytes of a UID with a known LRC will find the last byte value
|
||||
\tneeded to generate that LRC with a rolling XOR. All bytes should be specified in HEX.
|
||||
|
||||
Example:
|
||||
|
||||
\t{0} 04 00 80 64 ba
|
||||
|
||||
Should produce the output:
|
||||
|
||||
\tTarget (BA) requires final LRC XOR byte value: 5A\n""".format(sys.argv[0]))
|
||||
return 0
|
||||
|
||||
target= int(sys.argv[len(sys.argv) - 1],16)
|
||||
|
||||
lrc= 0x00
|
||||
for i in range(len(sys.argv) - 1):
|
||||
lrc ^= int(sys.argv[i + 1],16)
|
||||
print('\nTarget (%02X) requires final LRC XOR byte value: %02X\n' % (target,lrc))
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,49 +0,0 @@
|
||||
xΪν�λ�λ°�€§€¦¥-n›δο–1πξΩΐWλM9”Γ/ΐ��Δ‘i�βC$EώΧ�όχΧσ±οΗί¶=�ήΏΎ�ο~Ώ·�{ΉλΗ��ίύύ<�ΎΫ¶pόΏχίοσψΏόϊzύ�ίοΎΎόϋΝƒ�ί¶ώΏoΏώ�ώΰώ!ώΫv|·m%ψ―ίΟΗΏ~�σx�γίπήsα»y9γό67�ΠϊλΠ�Έ―ϋϋGC�BψΟGί}οθ�?Ύχο�9ψKΧ�Όω�ΗϋΧ�οϊ”πί¶2όΉόίΏ†�¶�―ϋίΑ�π?όώΨ�ιρ?©λ!όΤσ?ερϋ^/…�>Κγ΅Z�=¥ωΟ}–�ϋΏ�ώωΣς,Ζ??:λ�,?sΧcϊΖί§ι�Ώ��ϊΏιϊ�7�ϋ>‡>θδΏ¦ό•Ώi~Ι??ϋ?τ?ϊϊCό�Θ�:|�·}|�ώΐΏ|β���{όΕ�ύ¶µοsώ�^ω[^�ωρ9ω;��+�ο�KΣ_*ϊα‡τ―��Χλ¶΄ώΦ“�φϋ§�Η�Σ¶™;�ΪόΧ��ψώωΪω»~ό»βΔ?‰b�―—��j�Ω�Zφ�mψ�ω'��ό?ψ�ό?«ςΟΊ��ώ?όvύRϋoVώΏVόώΗώ'ώ��όΑ�ψω_δ�BΫώ?νσ?Ϊη�¬ϋ�r�ΣοσΟ?iΫ���γόη�8�Ηώ‡όw;π±�±�‰�c��Gώ—ΰ;9§�ϊόoόΠίήωμ?ψϊΫ£�Ώϋύύ„ώΓΏ�συγ{ηΏϊϋ Η�ύ”Ηο{yΌ~<ώο§<>‡�ο·?G�ώομθ――σχαψΏ�γσΧ—Ώώ�~ζΒ�Η»λΗη――;Πί:ώο]�γώηΪ{ξ~u��ώοτ�ηπ“ϊ�{η«wΎ[?β�!�Jώ�Τ~ύοη]ώ�±υΧk� �Π�ϊτ�?KιΏ†όOαί¶ώζΘ�υΦ?φςΟςώΗώσμΟ1{V�σχΣoΞ£Ώ~~Όέ�ξχ{ζώO��Χ³�mι�υψ�^ςO��υχ�¶εϊ5�ί¨ό�™�ί®¤ώτ?ϊ�?ώό�ψ�ρ€?ψƒΏnό§%�h�ό_/ώcKώCΫτ�·��χ™ώύσχ»;ώ�η�Ηώ‡�α;ό���ύO‹�1φί~κψάόϋγΏΫΗηθΏ|ς���k~Φ^�Δ�[υoΪ�›?�}πλγsφ'ςF�0©ώm—Ώνγ¥ύ�lϋ�΄ιί²ώ―νωΞυ§m�b�Ω¶�π��Η�ώΰOώοHόgά�Ώjώ�υό_β��ηό+η�Ω�qώ�σ�Θ?μ[η�Ι�!�ϋ�ό?ψ�ό?ς�π�α�Γ�‡ώ�\ύ�Γ�πΏ5ώ�ϊzω£|ό�η{qΚρέ¶ωσσο~ΗυΪψγϊ‹οBό�7ψΟGΫΒρ�VψΟΗ\ψρψmα‡ςί:ώΫvξrτ'y½Β~%ώοg¬ΏόΪϊoy~�yKψ΄ΑηΫΞύ_μ:|θ7ϊΟ…―-�―Λ�o�zώw^—δΏΞ��λφ�jλ_?{ώίέ/ΕΏ=ψΥΖKο―·ώ[σ?dωΪϊO��ωω��Ύω>ζΞ�XύS«ς�ύϋ_Λπϋν�p�#]�aίΜϋ―ψωΓώ�ηοmο�΄ϋ―»�±i�χΠ_gώ?kύέOώγ�Γ�‡�οSόΨπ?τ·Km�γ�ΧϋΚσ3Χ�yΏυ=ώ2ψµϋ—ύΏ½ρiόOΫώκΗ?�Ώ³ώz>zβ?«ω�[γo³μ�γ–μτ?ω_�ρλχ�–β�Ψ¶ν?βί¶ρ'�Οvόkt�γ―χ™ωOuϋΏ�<�ύΎwnL?Οέ�¶�_��ΧΞ¶��Gό�“όΏ+ϊ�ήΉ�κχ?Ν����Oώ�Jφo―ύ'Ν�Χ��β�“³β�ο·�‰�τ9κόύ„υ�ϊ―—ϋώξUO τύ1>ό>Ώ9πγρ__ιηπ·�ΏΤ�)ΕΏ&�jψ_ν�ƒί®� ?τΧ¦ΏfύΓ»γ?cύ―[�Ώξ�ƒΏnύ7ψώ‡�mβΟώη„ΓηήχήϋIαKΟώ―5ώ,¥��φ�σΡ¶�¤ρ_νυ―έ�fmύ_ΗΖϊΏs�τ?ς�
|
||||
ω/“Ώσς_ϊ�Π�vτ?τ‡ώψ�‘��>η8�Σsώ{FώυΊη�η�rώ�σ���ηό?η�9�ΟωΞ�c�Ϋ:�OύoΫη�9�Cύψ�ϊ���·yώ�ώ?όΦϊφΨ3ϊ�―{ώώΗώ·Y��ψƒΏέψύ_θ�ύϋ�τϊ―Q�Τ¦��ϊΏΤ�Υζ�;Ι?{υ?Kώ±�!��ώΟΨ�Ψ�Δ�±�‰�#�ι���ϊ[‰�c�Α�Π�ϊ�Τ�£ώγ*τ§ώεϋλ��ϋ�Ηλ�P�¥„Kύ=Ή��ϊΤ�¶W�ύOύGκΏΩ�†ύ‡όc�c[ώ―X�{�ϊηΦϋ�Τχsκ�―g�S��ϊ�Τ�§ώΏ%ύΏ’�ο�υ�Kώ―Ϊϊ›“�ƒώG�γ�Η�����»υ�ο·?ΏΌάό�υΗ΅άwώχιρ>ύSγ¥πSϊ/ώΰώ/IεΛχC>εδ�Y~Jρ?δσοw
|
||||
~�ςψm;_�Ώ��όΧηόόωφ?τ‡ώkΘ?/YώάϋΧvΏ»γ/•�σζΏηχώ™�m;�O]wλ{&�§αΧπ©�O]χ�ώ‡�-σ?ψΫ¶�Gβ?Ύ�ξχ»}όα�ύ?�πGθ�IγeώΏtόΑ}_�mϋ_�™Q�v•ψOμοOΛΣψχΏίνγγί�~―΄ώΫρχύξ�υίo~~Ό}†ώΏ†~³�ηέΟoGώϋρ«yϊΏ]ώϊϊ_Z�ΑϊώO›ώ#σί>Ύ>�ΪλoϋϋΟΆύ‡��ψ�„ώRό[θΧύΑόΰολ²ςηΤ_=ΎR�Ο�륤κ?ηρ/�j>�ώί‡
|
||||
ΏsΕ�»πωγώS-ρ«ψςψ—”ώ²υΏm�ωο{ήσοηΏ1ϊλπΏΤώ�a�jΦΏ΄.�µϋΏiΛY�·t�7/-ύοW�u&�#��Ψ�λΨ�3μΟϋ�ώψKι�ύ�ύ�Γ�Ίόoτ?ώ?όθΫϊώ‡�α;όo=�‘ρ��ηό�xώ¤tύiη’�ύ5αίρόΛΜσ?λ��³yώΥ§WΨ�=½?ΘΣ_��ί~ώΏ¶?κΉNώ�¬σoιο[Ξ�qώ…σ��g�ΓώΧΦxΞ�P�‡σΧθ?Ξ�#�ρ�ΰ�ƒώ¶όΨπ?τ§ώυ�¬Χ�W¤Η�yΗυ?�•κ�Ιβ?cρΏuκ?¥ρ―ωίηΥ�Ρρ�KγgσμO�ψρτ?υ�©�GόϋΟΆύGόωOώ�έψΧΘώοψέάϊ―:ύ¨�Oύς���γ�Υρ�S�_�¤ρς�Ι�ΧΝ�—Ωcω�λΤ�Η�O�Okρ�Χ½θαγ<_ϊΊγ�Χ�ά·ιλµϋΗγ¥πkχο}>π�ΟΕ�U‹$¬RώΎ¤ψ�_!ΌώµρυWί~ψ½χ‡ώΠ_‡ώΪυο�Ώtύ―W�ΊV�κ\λjώ:υίΰψώ·‹Ώuϋ�πΕόύ„ώΛ|ηίzω�ϋ‡γ���γϊ™ώ―ίΟ…Ζ?„ύ}ϊoΫΉ�MN_Ε}n¤τΧ¶�[π―ΏάΌΔφ�ϋ>�OΝυ―έ�f…υ/Α†ό»s�τ?ς_ΊώΓΎi3δοYώ§ε2ϋ?τ?ϊϊΫ¥?ώβ?Uϋ‡λ\'ώ�΅φ�Hό'ξ_2~ώrLώφ�/Ϋ3²ώ/RωΟψ_}κϋ�ήω—�??ΏζϊΣ–οcώ—OΫχΉρe�Ώ|δ�Θώ/άΟHη_Wώ�μ�ΒυΧ2εύίέψo��›ψ'ρOμ�»εΏ΄ΧOmΛ�Ρ΄t�_{ώΙ�#�ώ'�Ο�ό³ξίΕ�‡���e��Μώ›‘�―�‡�±�±�µΞ�άύόψƒ�gα�^ύ―-�¥ϊ?
?ό®Ύ‚ώΠ_‹ώ�ϊ_ΫvώώωHΧ—z>�υ¬Φ8�2V�j�ό—Β—ΦΏ=Σ?δ�4�¥υΟ|HΑkΕΏ4Ύτw>�Uβ�–υχzOρ�σqζνυ―Ν��#�Ζλ�=sη?5Ώώό§λίΩ”Ψ�κρgΖί6ώ�ύ�9ϋ?i�΄+ϊ―½sύ[ΧΪτ³Ύώξ#�ηΕ�µγΏΘθΏ|μ?μ?ό�Π�ύώ/ϊ_Ϊξ�H�W‹λ�ώ?τ�΅��Υώ?Θ?τΏ¬ώλΌώΏΪςίz�_μ?δ�=ω‡ό�Υ�zΜώ_gύKϋοJι�ώΏιύ�T�λΨ�θ]ώ�ω'Υ�:ϋλςύ―λ�+η?�Ιί™ω�νϊGκ�A�£�ρ�γ�Η����ψƒ?ψ_�ΏτόΣ<ω―£�Λθ�ώ�γ�iί�®δ�³ξ�Βώ‡�αόίΰOώw«�qίC�cλψ\όKώύ?i<ωψ�{γί9~m|.ώΏΖϊ'ώ/ϋ,¥ίμηyχσΫ‘�n=ΟΤ�νςΧΧ�ΫΦώόΉϊs��Π£�Θό·�―ΟΏφϊ[ΗώΖώ³h�α�Η�GόόΑίzό_�σ/―#�mζ��c�ΗωWβ?μ�8�ΟωδφΏUόΙ�!�ϋ�ό?ψ�ό?ς�π�α�Γ�‡ώ·sώώ‡�α[ό�zΆ=|ό�ηγ:ΧΟΧ�ό|ύΟ}›Ύ^»<^
|
||||
Ώv�ήηϋlό_½HΒώ'=�¥λKzισχΓ�η―φ�έϊί‹ώsαkΚwyώ·<�ωλλ•Ομ�Ο=Ώ�π�λµρΗυ3ώ²όW©ό_©�“λ_�ο�~ώόΏ»��ΓΧΗ?Η�©υWο_�ω_ύKσ?dωΪϊO��q�pώ�yn��ηcξό�Υ?µ(�°�ΩίZΏήoΏ†/ιϊ�ν—ϊχ_εηνί�}ξώO»�°ώώΗΊύ―K?λλο�ς�ώ?ό�ΰ�Γώƒ�΅Ώeϋ_ί�¨ ίΊύ76�σό�χ\�sύΏ�ώ���^όG�Σ¶ΏΖπηίΕ‘�?–�¥ψΟZώ�ΎψΩόύ�{γΔ�Ρ�–γ?-ροX^ΕςL:�ΪςίzόϋΟ®ύGόωOώ�έψ—d�γτΏDώϋ“mk·�SρΟ�ψΰzτ�ύ?w�·Ϊώ��όΟόgλωΔ�?Ι�«ι�Σί�ψ�ζΕΘ�'�µό�ϋoFώΏfό���Μ‹�λΨ�Δ��ρGΙψύ+σΚύ®6Ύφ=π�όχΓOϋ���|‰ύWΓ―αί¶�.ϋ?4αCθ―M�sύιΈ~µϋ�Xύλ|ύι»γχωOο?βύ›σΔϋ�9ψηαΧρoΩ–φ?π?όo��νβΟώ#
ίϊ»υύ�σ/–―KηyUϋΏ?νω›1�iωλδl|ύω�7~]ύ/{ώ»Μ?ϊωΏΆό—όe�‡ώ·®�΅?τΗ�oYώΫ>�ώγό5��zψ�ωqήά�σηόΏt^^:�ΞΗ«�jΛ�λƒί›��=�“��φόΛώιό?χΌ��©λΏΠ~έwΩώΊv�ηc.ό}�µ�· �OλΏϊω,―$τΧ–�5|kλ/7/σΉβϊΧΎ®Νw�?δπ―;�;―�Η=Ο?�ωίΦύOzΏ2gύ�οΏ�φj|Ιώ?ΓΟ�o³�Λφό―Ν�γϋο+ΦΏφώί�ό£ώ'ώ?όψ�μΦ�·�f¬?mϋώΗώ·m�«―?ΰψ7”�οƒ�ό_
>τ‡ώτ?Ώ�ύΌσz�Κ]ρ�7>|?Ξ•Έωwµ²όϋ_5�ύπΛγύο·Ν?7“¥Oηϋάωχk#�ΰ�―}ήδπ«ΏΦρΉΟk¬mώΏ�ό»ϋό[—vνέψ�~όΫ:ώΨ�¶ν�}ε§[?~}Ψqωλί�χ;Ό�:λί®ώ›C©ό›·ώβρmψ£�tβ�Ϊρ_δΏuϊ�Χo£��ϋ`�a�α�‡ώzτ_±ώΤ=κ_iΧίΌΎυω·΄ώ¥ώcι»nύg9~R�Ώφ»Δ�0―ώx~ό?�µώ�χ¬?δϊgµϊ�ύςK�΄ε
|
||||
�ρηηόΑΘ?δπeπµίµΧψήj^5�ύπΛγKίΟΩ�ΝέjΫ�φτ�Zό?ωwχω·+�Ψ�η�{§ό�£¤ώτ?ϊ�?ώό�ψ�ι|ΰ�ώοτ�ώΠ�ώίτ�~oόΏ-�tώΊφ7ό�Ϋζϊ�Ϊήμ{8ΎφΉχ½χ~Rψ�ίΗΛ}›w�Ϊύζΐ�ΗΣ�—ώ―¥ώσ®_Π±~ΒψΑΎΛβρψ:�ΏsύKβ'sζ_;ώ“£�΅?�λ£ϊ?/��Οί?�γρ5ύo]ώ�χ�“κ�Z�²�>ΏΊ��ΥώΟΪτί¶¶υu�Λ±υΧή�PΫώΕώΓώΓ�Oό‡ώ‹ΐΎΥώ�τ�΅�ύ¬φ�΅�µmω_ο__~—ΞΏ6�IρΣ�?ψω‡όώ]ϋ�έ�OμΏ�ύO�Oψί.�[Γύ���ϊύ�Γ�πΏ%ώ·��ώ�αό�Ύ—σ'�οFσΏΚωίϊω�δ�Ϊ¦�ΎΟ…ΣίCψξώk�YοόΟ;σ�9�›λ�JΥ/›‘�_κW?�#οg=�_σόΩΊη�-��γό?η�Ω�sώ�σ?6λ����n“ΏξώΎΝµΞώϋ�σ���Η�‡���=�φηΏ΅ΏMϊS��Η
|
||||
uHVσΏYy—Ζ¤ρΏμ?i�'ιω»Uκ�εγgΗυΡϊίµύ�zρ?+φ?ϊ�ό/κ�Ω��c�Ω¶��#�Ι�³�’φ/�³�\―�υ�©�Oύβ�β�+ϊ�ήY�_Άζ�%��όMϋwN�ϊQύ£�Ε�O�O»ω!}�ηΛΡ�<�g<γο?>®K’®�r®�ς.ψW?Ώ6|θύuεΗωύχϋ�Χο��½η_ϊ'η�Ϊύ―}~ψώ·Μ�ΰoΣώΏwύi9|θ―[�U[�κΧ]…�Βχ�ότΒ/�χΏ_IώΞΓ�ξσ�ώGώkΤ�Φ•ΏΦχθτ?τ·Kό�ψ�άωΞγ|bξόηόxΌ;�•/…�Κ�βί�/�p―Xϊά�ρΗΏrQ�υ™–�ξχνλΏ4ΎMώKγORω―·��C™όΫ¶6ψ-ρΏ–η=�~ήϊKΩΜξώώyύ�Nω/«�ΠfΊϋ�ι_Ξ�ƒί“���'¦iύ�ν�JτΧ–�γψ·ο�|όcώΧ^�ΦγoΔ?±±�Λφy‹ύ%µ�υχ�Rό¥ϋ�yσ��_ς�Θ�ƒ�Ι�λ§Ο§Λ?όίψ�π�α�³θ�›g�IΟ�hΗνς?φ?ηΟxΖsώ�ό/Ξ�C‹ωί:ηOΦ‰Ωτ�εθ_Ϊ+§~'Ο?Φ±�Ι�ηόη�8�Gό�όΛω�Ψ�Δ�‰��'ώo[�Υβ�#ς«-ώ«�ηό§Uϊ�ΗώΓ�ύϊ�µϋΟhΒ?Ζ»οb�ρυΟo}ώ―©�Ω�#ωύh]ΒλρχeωU§ίΥώ�3ύ�?υω«Ν³|ώΗόRώkΏϊοZ�Νυλω‡ώΧ¦Ώ$ώ,��uδΏV�1ψω‡όcΌφϊΧ±?ΧY��?)ύtώζν�¤ϊ_ΗώG�λς�ηΘΏ»ΟΏMω‡ώΧυ�iΛίyϊGκ�A�£�ρ�γ�Η����π�όwκ�ψΟ
|
||||
φφτΗ�gΣ�oέ�§½��·�ΊΆώό�>�ƒΏmϋίΓρΗw―Ορυ~ξωKγχ½<^
|
||||
?�χS�Γ��Ώγϊθό»ϋ��ΑΘΣ_
|
||||
??bϋό^ν�ϊΧζEϋ_ϊόο�?ιxΗ/m�{ίΫξ§·ώGρ�K?½χ}~ΏΟηιGτ›ό“ΒΟ�―ιλς?Χ�/�ΟqωUΣ�Ήώgϊ??ΎMώZί�J�–υ?£�έΎΟ]ΟGyώάύΦ°±�lΫψ�ρ�ψΐηόΏµό_λωΔ�Π�Ϊφη�γη±�³³�ƒ��μoλπΙ�!�ϋ�ό?ψ�ό?ς�π�α�Γ�‡ώηό?ό�Γ��Λ�__―|,?�ιθΟςz�γ»mσύ›�ξχΊΎmαψ�ώψγϊΡ�Δυyύ~.όxΌ»~Τgπηό��ςσ»QcψeψGΏ#ΧΏΨυ':ϊ!Ή~Ea�γλ?μ›|†_[�ηη��?μΏ�ϊ>…—ƒ_��άΌ΄Β‡ώΪτίχΉπc8ξώ©ωΤ–�ςόoYώs
|
||||
�πz¬���Ύρgώz>ζδΏΞΰ?ύώοηυΪΣiϊϋπΚτ9ΫW¥ω/υίkΑ?έ�ΟρίσQη��Jψ¥τGι~ηϋ―Έώ¥ηgΪΗkλΏ+��Nσo]ώ±�`�o�Ϊώ§΄_�³�ΠέYί�εν�s�α1ωλοβώΟ+μ°�Gι?Cώ•Ξ��ΏΎσΏΘόψ�π�Yυ�a�Yηθo™ώ5�lΏ�±Ο�«ν�Δ�!σ_^q]Ϋ�¦��;―Kγ?�ψ�¶ύw�?¥ςΡςώσzό§ό®ο�ίχ‘ψΫ,ϋΕψ�%ϋύOώWOΌzΫζΖ�Wά�[��c�Ω¶��Ϋ†Oώ�νψΧθώ§]�χε?½ή�¶ξ�¦Η—μ�ηCbίHχ«ν�WΰύψΏ¥ό?β�–ύΏ+ϊ�dϋ―}—ψίzτΟ�ψω�δ�―”�ίk�Iυ�vό�‹όKΟΧω�ΧΫ�Δ��λG½€ψύ+σΚύ®6Ύφ=π�όχΓ—Κ�«αΧπΏΪ�z5|θύµι―Yθξψί}ώ¥ώ‡9ψλΦί‚�αΫόoφiψΦίο�ZύΗ�y^ΥώoΕO{ώfΜΏf�™uυΏμωο2�θδ��ς�]ς—ύϊίΊώ‡ώΠ�ΏeωOύ?Ξ�sώ†σ?ύηΏgΤ�[σό?ωΏ��ηό?η�9�ΟωΞ�sώ�σ�ΨίΦΞ�[©�ΝωΞ�P��ϊ�Τ�ηό?η�ρ�α�Γ�g©�ηΈύ7cύyώί�c�Ϋ®�|ΰίnό‡ώ/τ��ώvύλυ�~oύSλώ?κ�Ϊ®�»�ίIώέΏώ―mωΗώƒόΫύ�±�‰��'ώOόί¦ό·ή�έΊ�Ο:ύmΗ�±�π�Cκ�σNύGζίΦϋ�±¬ώ�vύ—ώ£Οίη�Χ®�Gύo«υΠχΤ¤ώ›έϊoπσΝώΗ¶ό_±ώ·~ύsλύΪφΧν?uνκ�S��ϊ�Τ�·΅�Χσ�½³ώΏD�Μρ?Ά�Ρ�ψ�ρ�γ�Η��nύθ§β9�―Η�g<γΧρ΅|?δSNώ�εηµπ―~mψΠϊ―!?΄�ξ��=ηίΟσ{Λυyό_»�5Ο�Γ�–ωόmΫ�ξό§σΈσ“ώoΖύΟξώώ™ΛΌ�[
|
||||
?_ς�~ϋχ½ςπΗζ?ογ�/…�ΒΏDΙωciόA[�κϋυγ?ϋϊϋέϊρωΓύίχ;�~—ΏχΗίΗχΧ^�?εη�qIγ?>�sΰ—Η—ξ[Άw�^νϊ³MώIαKoWώKκΜΠ�ωϊuύ/�`}�§M�Τόυ¬�ςψ6ύΏοsΧ__ύ]ϋϋΟ¶ύ‡��ψ�xώΟxΖίzΌτO‰λΆ¤λ?—�Ώ<>Ό�N��Ύ<~%�)ύ―]W?ΏφϊΣβ�υκΟΏΎuω―έ�M›�τϋΐΘ?δγµΗλΪ�χΗ�ήσ�ύoΣώ‡�απG�γ�Γ�‡ώ·«�αψώ·Η�ΦσΑ�σσΦΟ�»όΞtώdx½?©΄ώµσ?Ι�‚ώyόΗΰΗτ�ηΟΟ�]'�_ηόΟ
|
||||
η�,�υιύ|�ιοΦ―ϋΏ_n^ώΏ{ο9�S_Ϋ?��―ώLϋό‹υσ��·½`�oΞ�P�gΞωοφσΨ+��G�qώίΊόΗ�‡���M�φόύ©�Bύ?»υ�4λ�¬γ�Υ«Ώ·Jύ?Yόg,ώ·Bύ§ηγόήκ�W�GΗ�Σ7E�ψzoύο6ϋ_'ώGόύOύgκ��Ηώ³h��Fώ[Ο�³��νbϋy$�―ώ¨N�κ�S��ϊ�Δ�©�―γ�[§ώΏT�Hγ?δ�“�―Y�_j��ϋ�Χ¨�oΧ�O�O«ρ�Χ“Όd†ο?=δSϊΊ{ώΧ�ά·ιλµϋΗγ¥πkχο}>π�ΟΕ�ίo_ΫΦφ9|Iρ?ΏBx5όkγλ―2Ύύπ{ού΅Ώύεωί²ό‡»γ/]�mρλήω—δΏΏΦη±ί?Γ?ΧΊ�ƒ�¶µΑo©Ώ�ΟΧί‚�αψί.ώΦν�Γίωχϊ?sπ�λεO<ξ�>bό�λgϊΏ~?ώ�>τχιθKΧΏ&――β>7RϊkΫ�-ψΧΦ_n^b{Δ}Ξ§ζϊ—ηΚβ+¬ ώ3δ_)ώ96�½ρOτ?ς_Gώ�ϋ¦Ν�Ώgω�–Λμ�Π�θθo—ώψ�‰�Tν®s�ψ�‡Ϊ�#ρ_�μcωί+ϋΖ—ν™^όΟϋG‰όΏgό―�>υύοόKΖ��_sύiΛχ1�ΏΛη�νϋάψ²�_>ςd�ξg¤σ―+�Gφαϊk™Ώςώοnό7Ο�Mό“ψ'φ�ές_JφWΏύ―k�θ>Ώφό“�GώόOώ�UωgέΏ‹��ώ?Λώ?™ύ7#�_7ώ�c�c�k��Ήϋωπ�ΟΒ�½ϊ_[ώKυ~ψ]}�ύ΅Ώύ¥υίό9ΜΥσοίW�ο�η_Ζϊ_Μ“�Rψ�ϊwgϊ‡ό‘¦³΄ώ�Ο)xψ—Ζ—ώΞηΏJόί²ώ^ο)ώ>Ξό―½ώµω�sδίxύΗηcξό§ζΧ��t�›ςϋ_=ώΜψΫΖ�±�?g�W•Ώ_Χ^�Φυ�6ύ¬―ΏϋΘ�yρνψ/ςϊ―ϋϋ�?τΏ�Λn�_ϊ?ιΡ�ώΧϊύ4ϋΣ�9��αΌώOσϊ/¦ϊe•ϊ�HόRω§έ�«l?�Ώϋω‡ώ_ƒώcρηyύ�΄εΏέώΨΘ?«ςω―Ϋ�{�υo³�5ύΡ��ό�9ςO��uφ�Φεϊ_Χ�WΞ“Ώ3σ�Ϋυ�Τ�ƒώG�γ�Η����?ώ/+ώOπ�5πΧ‰�hΫ�ΨΠϊΫυ�[χ�iο�kη�Ϋχ_cη�αψώμ�σψΧηψϊΏ�;ψ�<>7�ώψίοφρ9ϊ―�¬�ώ~RΧCϋ?µ~�~ϊζUϋ?χό?εη>ΚσηξWζ�Vψµρ?ερ9ω�ήΟΪλΏύyΣογλ�οgόyΏ―ιί΄=7ώϋΰΧΗημOδ�ό�εΧύΫ.ΫΗχ<?ώΏΥθί²ώ·έ™›�5Φ�¶ύ‹ύgΫώΓ�Οωόΰώ��·“�k=��ψϊίηΪ�cώ/mϋ—ό/φ–χλρ?ςω‡ύOώω?Ψ�Ψ�π?όOώωψ�π�΅�Ρ�π?ό�Γ�Rώ�ϊzω£|ό�η{qΚρέ¶ωσσο~ΗυΪψγϊQ_ΑΗψwƒ�|„π·-ΐi…�|Μ…�wΧ�ϊΎό·��¶�ϋo[ΨΕοWμ�~Ζϊ«Α―�–ηχ�·„Oόpώ·νά�9μS†ύοF�Ήπµε�uωσmγSΟ�Ξλ’όΧς•ώοώϊMΩΣ1ύ|x3ηΏΤλΌ~¶}όσqξΏ•ζ�όjγ¥χΧ[�ω²όmύ'Ε�όόΟGίό?sη?�|”ΗΫ–μΨ�Z†ίo�‡ϋιϊχο7g�?ΏΟ�q�NφύςΏlυ�Ώ\w�cΣώο΅ΏΞόΦϊ»�όΗ�‡��ί§ψ�°�ΰθo—ώΪώΗ―[χ?”ηg®�σ~λ�zόeπkχ/ϋ{γ?�ψ�¶ύΥ�8gύυ|τΔVσ�·ΖίfΩ�+Ζ�,Ω�θςΏ4γΧ+ξ�-Ε�±�lΫΔΏmγOώ�νψΧθώΗ_ο3σ�κφ9ώyϊ�|οά�~�»�[m�Ώ�―��l=��ψ�'ωWτ�½s�Υο��!��ό�•μί^ϋO��―�Ε�?&�fΕ�ίo��?θσzΉzm�{_½χ“Β—ώόΑίώ±|‰εsϊz,?Ζρ?δΣρ�~
�Ϊψτuχό5όΗΰχήϊCϊ‡ύέψ\ύ΅sύ WKκ|ίάψuδ�ιϊOΟ�tώSυ�~ΏΣγCϋϊX�9�Cμ?�γΨηΏί)ψuόΛγ·ν|έ~ψώ·Ν�¶ρ·n�υ�~Βϊ�9ψαο^υKίγΓοσχ›��ϊΉ Ώ4�EJmϋΏ†mύIύ�Ϊλ_»ώω
|
||||
λ_‚ΏtύλΧE�#�υδ-ώ1&Ϋγμ�Π�Φυ?τ·Kό�Δ�τη:Χ3ό/]�mόΫ�:ώηψΟ¶•ς―Ξω“#ρ£πωJυfZζ―6Ύ\Ο¦�sό¨ώ�Α―Ε―ςπ¥ρ/)ύ¥ςelώ%γΟΟ―Ήώ΄ε»υσΘέϊϊς�ϊ�η�WX�–Οc�c�KμχφΏ®ύ£ϋόΪσ?f?‡»Ιϊwϋ—mΩµ��Οό΄οΟZψO²�ƒ�οΘ�σδ�zϋ[ςΟΊ�ώ?ό–ύ2ϋ/½ώ\υ6ώ/σKΏύu>��{Α�Ψ�Ψ�γφ―”�οi�‚?ψ*ώοΥ�Ϊς_��ΣπΓοκϋ'θύµθοΞΏΔυ®^4τkd…υ—^ηVό9τλKύ~�ΗίϋχΧ®γ?_κΊ[ί3εΏ~~||έ_ΆΘi:§ζίΡΏ^Ση�ΌVόKγK²ϊ�ιϊcn^Zκ®R�Q‡�?Gώ��xήfΜj~ύω�ωΗ²όΓώW�?3ώ¶ρμ�ΟΩ�UεοΕΧµΧΏuύ§M?λλο>ς^ό_;ώ‹ό‡ώkΑΗώΓώΓ�ύίο��¨�uχϊW�ϊ§ϊυ?µιoνυ/υϋq¤Ώ�σχώ~λο§Χ�uύη:ώ©xείΟ\�ΏΏ^ψ©ω�Η�~§ι2Γ�/•5�Eκσοχ»ό�cλ―ΗώAώ΅�Χ �XόYJ�uδ
|
||||
�ϊϊ›'�µυ?φςΟ�όCώ‡φωϋ³Ηώ_gύηνΝ’ύ9�ώRψcΏ�·�“κϋύ―Λ��#�¤ϊ_g�o]ώ΅�uύεόη1ω;3�Ώ]�Hύ?θτ?ώό�ψ�ρ�Σ��ώοΰώτ§�τ‡ώτ�¦�χ5ώΩωW9ώΊϋ?ψώ·Ν�τ�µl�ώΒΎώ“η~�µρΉώ�Ϊπ¦�+ύϋσί=CύQ��¬°ώ%ω3ϊ�ί/�oζόΛΰk?ΏMως³D��Ι_wΏ«ϋ�}ώώO—ώcσί>^Ϊ�ςκυ§m�b�Ω¶�π��΅�#ψƒ?ύ?ι�C�ϊ�Xλ�C�kΫςί[ϊΧϋυκύ:χ3ϊΏλΚ�:ώµυ—›—XΉοΓωΤ\�Ϊό�όCώa�Ϋν�wwό?―�7φ?ύ?α»όoτ?ώ?όθτ?ό�Γ�Φψ�|x>sώ�σ�£ω“�υ¤��IώτΧ„Οσ/σΞ�θη?[?�;R�ζω�‘ϊ[νγλυ·Θ�Χ¬ΏΒωΞ�qώ�ύϋ[‹�9�CύΛη―±�9��όΗ�ƒ�ϊ[τ�a�Α�Πί.ύ©�gϋσΨόΟσήsύΟΓ¥ϊ#ρiόo…ϊO’ώO3Ξ�ιϊ�eρ3ωώ_7ώgέώG�Ϋ��P�ΟvόϋΟ¶ύGόωOώ�έψΧΨώo^ύΧϊΏR��ϊ�δ��·Z�_Σ�§½�’φ–�%��ό�5ς�Gμ?iώ�
|
||||
υ�ρ�Σ�Σr�—ƒ�ύυΦοpσwζWC£<ή�x�|ΰψ―wW'%όόϋwΑoΗ?=ήΥ_kΑ¬ϊC
ϊ‡ο‡]ιΰ;[ρψ]Ώ<ή�ήΥϋ$όο>�αϋ¶¥�rΏ›�·�άsηρ��αψί.ώΨ�ώxη—�―‡π?uΌυύί™/·ν³tώΧ°�λψ—�_oώFΗ�ίί{}-ύ/}ώϋΝ?ϊωΏ�όΧ“Ώψ�Π�υ?τ‡ώψ�-ΚIώO|Ώ�ι9�κ�Ώ~*�ό‰Ώ΄ώ�ΎrύSόό°Zό'Ώ�ςοος…sϋ―R�—6ω›κ�R—Ώ�ψ“TώλνηΠ_*�ϊαηπ�ΗΧβϋ>wύΕτϋ»γΫ¶¶ώϋϋI]ο·?γρώω�ώ£πγρψ�{θΏmiy0Ύι£�ϋε�ώνϋΏ4ώωω[aύ[�Ώ�Δώ¶n�Ηφϋ¨ύΩg�kΩ?RόηΫΏ£σ�'��ό?ψ�όΏήύΏω‡��ώ?όVύsμΏYωWZφ—]ώΗώ'�ψΐ>πΙ�"�ϊsώWϋό�φω'ληϋίηΞΏ¶ύΟω?Ξ�qώ�σφςΏΘ�·���ύOό�ψ?ρβ�6υ_kό³]ώχα―�ηό§Uϊ�ΗώΓ�ύ�?ξ?qψ…^�γλa�‰O�ϋ�κ�ΣΦ#5>ΧcUψΦηί�ϊ—ϊ�¥οyωW§�;ό�#Οίγ�Χ~—ψfπ_ ~ό?�µώ�χ¬?δϊGώω%Υ?Ϊς?…�ψσΏsώΰ?δςψ2ψΪοΪλ?|oµ?―��~ψερ¥οημ�ζξ?µν{ϊ-ώΏ�ό»ϋόΫ•μ�Φσ�½SώΞΡ?R�ϊύ���?ώό�ψ?€|ΰλΕZσ�®…―�±$�΅?ϊ�ώμψώ·κ�Ζ�oΥώίχpόΎ‡ώΓ}—ωγρϋ^/…Ώο}ώΟώΗόΧGηίέ�ψόF�ώRψρxς�Θ�«―�η£υsο{ΫύτΦΏυψ�>ρωQύί&�¤πσγkϊίΊό—φ�“κ�|�²6ύ]�?ϋΏUιί²ώ―ν9¶ώzϋjΫΏΨδΰ�'ώ|ΰ�όί±ψ�4ώ΄Vώ�υό_β��ηό+η�Ω�qώ�σ�Μ?φ·σ�δ���‡ύOώόOώωψ�π�α�C�ςω/ψώ‡�νρ�ΧΧ+ΛΟ:ϊ³Ό�τψnΫ|�ζΏϋ½®o[8ώ…§?ώΈώϊ>μ�ςοίΉπγρΫΒηό��ςσ»QcψeψΫvξtτ'z½Β~E~�“λ?ξ›Γ―�σsΕΟφ_I}�ΒΛΑ/Οn^ZαCmϊοϋ\ψ1�°�W<�Ϊς_��-ΛNα^�υσσΡ7ώΜ_ΟΗ�όΧό·n�Ώ�^¥~υeϊ�ν«�όΏ»�_��c~(α—�¥ϋ�οΏβϊ—��i―�®xώ;ΝΏuωΗώƒύΏeόkϋ��~iΞώCw�e}�§έ�\�ƒύ?J�ςO»�5ς�ώ?όVύΨΦωϊ[¦Ν?Ϋομσ�jϋ?ρΘό—W\ΧφΏiγ�Ξλ�ψ�4ώ§m��γOι~@9�y=ώS~Χχ�οϋHόm–ύΏbόΟ’ύ�ώ'�«'^½msγ�+ξ�-Ε�±�lΫΔΏmΓ'�Οvόkt�Σ®�ϋς�^οN[χΖ?ΣγKφ�σ!±o¤ϋΏΥφ�+πΏ~όίRώρΛώίύ²ύΧΎKόo=ϊgFό‡ός�WΚ�οµ�¤ϊG;ώ��ΏEώ¥ηλ�όΗλνβ�Ηυ£_ΘίOΨ?δθOτzΉΟαο^υJίγΓοσχ›?�υ•~.πΫψKχ?Rόkϋ�ώW��ƒίΎ�ƒώΠ_›ώ�ύο���υΏn�ΗΊ�mώΊύ�ΰψώ·‰?ϋ�ώ
�{ί{ο'…/ύ=ϋΏV�³”ώ«Ϊ�ΟGΫz’Ζ?΄ΧYώ�φnο�Ό¶ώ―γ?cύλχF�#�Χ’�2ω;οό�U�ϊί�ώ‡ώΠ�?ςΏ�ώnύΖψεΖ—σ�/ψΤ΄‘�›ΛΏτΏmνρ£tύΏώσΧαϊo©_U:=zώ}Φωoύσ?γτ�!Fα;ό[Ηωq=3έυ·Άόο;Ώ�yΧΧμΛ_—ΝΏ6�IρΣ�Ώχ_ΏΎώυO¨†ύ―έ�ηχ{Δώκµ�µν ώΪπgΜ?υΏθ��[®�a[ώYχ�β�Γ�‡�Ο®�Ob�Νθ�£_�ώΗώ§ώ/ώπβ?τ²Φ� ϊγ�£ώ/ώ?κ�Ω¬�g½ώ―�Ωλ_>�ρxκ�R�wζώ‡όϋO‚�ύ�ύOόϋ�ψ?ςΏMώΟ��®����ϊ[‰�c�Α�Πί&ύ©�GύΗιOύΛχΧ�χ?�Χ�[΅ώK �–ϊ{r��υ�¨�m―ώϊ�ϊ�Τ³[�
ϋωΗώΗ¶ό_±ώχυΟχ�©ο�ζΤ?_Οώ§ώ?υ�©�OύKϊ%�ί;λ�—ό_µυ7'�ύ�ώΗ����?ώ�wλ�ίo~xΉω?λ�C�ΈοόοΣγ}ϊ§ΖKα§τ_8όΑό_’Κ—ο‡|ΚΙ�³ό”βΘηίοό:ώερΫvΎ>�1ψ―ΟωωσνθύΧ�ώ^²όΉχ―ν~wΗ_*�ηΝΟού35Ϋv�ΊξΦχLώOΓ―αS�Ίξ??ό�[ζπ·m��Δ|�έοwϋψΓ�ϋ4α�Π�“ΖΛόιψƒϋΎ>�ΪφΏ,ώ3£ών*ρ�Ψί�–§ροΏΫΗΗΏ�ύ^iύ·γοϋέ¥λ?Ύί8όόx�ϊύ
ύf?Ο»�ί�όχγWστ»όυυΏ΄ώƒυύ�6ύGζΏ}|}ώµΧί:φ7φ�Eϋ�?ρ ύ¥ψ·Π―ώ<ϊƒ?ψ[ΑίΧeεΟ©Ώz|¥�9ΧKIΥΞγ_Τ|>ύΏ�~η�/ώwασΗύ§ZβW-περ/)ύeλΫ¤σίχΌηίΟ[cτΧα©ύ?ΓώΥ¬i]ώkχΣ–�²ώoιώn^Zϊή―ώλLώGώ!�°�Χ±�gΨ�#φ�ύρ—�ϋϋώ‡�uωί.ώθόψ�Π�¶υ?ό�Γ�vψίzώ#γ9�Οω�ρόIιϊΣΞ�$�ϊkΒΏγω—™ηΦ9�gσό«O―°?{z�§Ώ4�ΏύόmΤs�ό�Yηί�ί·��[γόη�8�Οώ‡ύ―ρ��΅ώη―Ρ��Gώγ�Α�ύmω�°�ΰθOύκ�Y―�4―ώH��σ�λ&ώ+Υ�“ΕΖβλΤJγ_σΏΟ«�£γ�—ΖΟζΩ�:ρ?β�θκ?S��ψ?φ�Eϋ�ψ7ς�ό?»ρ―‘ύίρ»Ήυ_uϊ�P��ϊ�δ��Η�«γ�[§ώΏT�Hγ?δ�“�―›�/³�Ζς�Χ©����ώ�Φβ�―'zΡΓΗ�xΎτuΗ?―�ΉoΣΧkχ�ΗKαΧξίϋ|ΰώ�‹�«IX�¤ό9|Iρ?ΏBx5όkγλ―2Ύύπ{ού΅Ώύµλήιϊ_―ώuώΥΉΦΥόuκΏΑ�π?όoλφ�α‹ωϋ ύ—9ψΞΏυς'χΗ?1ώΗυ3ύ_Ώ���ϊϋτί¶s�›�Ύ�ϋάHι―m�·ΰ_[Ήy‰νχ}8��λ_»�Ν
|
||||
λ_‚�ωwηώ?θδΏtύ‡}ΣfΘί³όOΛeφθτ?τ·Kό�Δ�φΧΉNό�Cν�‘ψOάΏdόόε�όν_¶gdύ_¤ς��ρΏ>ϊΤχ�½σ/~~Νυ§-ίΗό�.�8¶οsγΛώ=ψΘ�‘ύ_Έ�‘ΞΏ®όΩ�…λ―eώΚϋΏ»ρί<�7ρOβ�Ψ�wΛi―�Ϊ–�£i�θ>Ώφό“�GώόOώ�UωgέΏ‹��ώ?Λώ?™ύ7#�_7ώ�c�c�k��Ήϋωπ�ΟΒ�½ϊ_[ώKυ~ψ]}�ύ΅Ώύ¥υΏ¶νόύσ‘®/υ|¤λYqώe¬ώΥ<ω/…/{¦Θi:Kλ�ω<�‚Χ�i|ιο|ώ«Δ�-λου�β�ηγΜ�Ϊλ_›�?Gώ�Χ�{>ζΞj~ύωOΧΏ³)�°�ΥγΟ�Ώmόϋ�sφ�ώiWτ_{ηϊ·®�΄ιg}ύέGώΟ‹�kΗ‘�Π-ψΨΨψ�΅�ϋύ_τΏ΄έ�‘ώ―Χ?ύθ�C�«ύ�θYύΧyύµεΏυώΏΨΘ?{ςω?«�υ�ύΏΞϊ—φί•��>ύΣϋ?©ώΧ±�Ρ�Ίό�9ςO��uφ�Φεϊ_Χ�WΞ“Ώ3σ�Ϋυ�Τ�ƒώG�γ�Η����?ώππΏιω§yς_G�[—�Πύ?Η�ΣΎ]Ι�gέ�…ύ�Γ�ψΏΑ�όοV�γΎ‡ώΗΦρΉψ—&όϊ�xς�π�χΖΏsώόΪψ\ό�υOό_φYJΏΩΟσξη·#�έz�©�Ϋε――�·ύωsυη8�΅G�‘ωo_�νυ·�ύ�ύgΡώΓ����ψ/ψƒΏυψΏ4ώ3ζ_^GώΫΜ�%ώΗώ�σ―ΔΨ�qώ�σ�Θ?μ«ψ“�Cώφ?ωπ?ωδ�α�Γ�‡�ύoηόό�Γ�¶ψ�υD/zψψΟΗu®�―;ωωϊ�ϋ6}½v�xΌ~νώ½ΟχΩψΏz‘„ύOz>KΧ—τώ�ηο‡Ο_νU»?τΏύηΒΧ”οςόoyώσΧΧ+�Ω�{~�ώ�ΰΧkγ�λgόeω―RωΏR�'ΧΏ>ί�*ώύόωw�=‡―��?Sλ―6ήΏσΏώϊ—ζΘς΄υ��γώαόσά:�ΟΗάω«jQώa�³Ώµ~½ί~
_�υUΫ/υοΏΚΟΫΏ?ϋάύ�v�aύύ�uϋ_—~ΦΧί=ε?ώ?όψ�>Α�‡ύ�CΛφΏΎ�QΎuϋolώηω?οΉώηϊ�ύ;ώ�ώΌψ�4ώ§m�αΞΏ‹#9?~,�Kρ�µό�}ρ³ωϋ�χΖ���£�-ΗZβί±Ό�ε™tώµεΏυψ?φ�]ϋ�ψ7ς�ό?»ρ/ΙώΗι‰ό;φ'ΫΦn�§β�¥ρΑυθ�#ϊξώoµύ�;ω��ωΟΦσ���’�WΣ�§Ώ�ρ?Ν‹���Oώ�jω�=φί�όΝψ/ώ�ώ™�Χ±�‰�γ�:’ρϋWζ•ϋ]m|ν{ΰψο‡�φ?<9ωϋ®†_ΓΏm�]φhΒ‡ώΠ_›ώηϊΣqύjχ�±ϊΧωϊΣwΗ�ξσ�ήΔϋ7η?�χsπΟΓ―γί²�,νΰψί:�ΫΕ�ύGΎυwλϋ?η_,_—Ξσ�φ+~Ϊσ7cώΣςΧΙΩψϊσ1oόΊϊ_φόw™τ?ςEω�.ωΛώύo]�Cθ��ί²ό·}ώόΗω�jώώυπ5σ�βΌΉ9η/ΞωιΌΌtώ��W-ώΥ–�ΧΏ'ώ6#ώ¥{ώ'5�νω—)όΣωξy9�SΧ΅ύΊο²ύuνώΟΗ\ψϋ>k�oAώ�ΦυσY^Iθ―-�kψΦΦ_n^ZηsΕυ―}]›�ξ>Θ?ΰ_wώw^��{�ώ¤σΏϋ�τ~eΞϊί¥ν�Τψ’ύ†�;ί4f�—νψ_›�ΗχίW¬νύΏ5ωGύOόψ�π�Ω�3n�ΝXΪφό�ύoΫώW_ΐ>πo(�ί�:ωΏ|θύ5θ~�ϋyηυ8>•»β?o|ψ~�+qσοjeωχΏjώϋα—Ηϋίo›n&K�ΞχΉσοΧFΑ?_ϋώΌΘαW[γs�ΧX�Ϊό?ωwχω·.�μΪ�Ίρ?ύψ·uό±�mΫ�ϋΚO·~όϊ°γςΧΏ�οwx�uΦΏ]ύ7‡ώRω7oύΕγΫπG�ιΔ�µγΏΘλτ―�ήF�0ώχΐώΓώΓ�ύυθΏbύ©{ΤΏ�®Ώy|λσoiύKύΗ�wέϊΟrό¤ώνw‰�a^ύρ4όψ/~ώkύ�οYΘ?τΟjυ�ϋε—T�hΛ�ώγΟ�Ξωƒ��Θ?ΰΛΰkΏk―�π½ΥώΌjώϋα—Η—Ύ�³�›»�Τ¶�νι�µψ�~ςοξσoWώ±�[Ο�χNω;G�Hύ?θτ?ώό�ψ�ρ�Σ�ψΐ>ύίι�ύ΅?ύΏι�ύήψ[ώιόuνoψώ·Ν�τ�µ½�Ψχp|νsο{ού¤π¥Ώ?ώ�—ϋ<6�ξώµϋΝ��§�/ύ_Kύη]Ώ cύ„ρƒ}—Εβρuώηϊ—ΔOζΜΏvό'G�CΧGυ^ώ¥�Ώ~Z�ΗγkϊίΊόο�'Υ�µώe5}~u�?«ύ�µιΏmmλ�κώ—cλ―½�΅¶ύ‹ύ‡ύ‡��ψύ�|«ύ?ι�C�ϊ�Xν�C�kΫςΏήΏΎό.�mώ“β§=πςωό»φ�»3ώ�Ψϋ�ώ�πΏ]ώ·†?ϊ�ώ?τ?ϊώ‡�αKόo=�ό9�Βω�}/ηOί�ζ•σΏυσ?Ι�µM�}�?¦�Ύ‡πέύΧ8�²ήω�wζ?sώ7Χ�2<”�_6#�ΏΤ�®~ώGή�ΞzώΏζω³uΟ�[:�ΗωΞ�³�ηό?ηlΦ�?�έ&έύ}›k�ύφ?η�9����ώ?{ώ?μ?ΞC›τ§ώώ�κ�¬ζ³ς.��Hγ+Ψ�ώO�σw«Τ�ΛΗΟ�λ£υΏkϋ�υβVμτ?ω_Τ�³�Ηώ³m��Fώ“�g7ώ%ν_:g�Ή^�κ�S��ϊ�Δ�-Δ�Wτ�½³ώΏD�Μ9�Jώ?ω��φο�ώυ£ϊG;ώ‹��ώ�vσ?BϊΟ—£�yώΟxΖί|\—$]�ε\?ε]π―~~mψΠϊλΚ�σϋοχ;―ί�{ΟΏτOΞ�µϋ_ϋόπ?όo™�Αί¦ύοϊΣrψΠ_·ώ«¶ώΥ―?Ί
|
||||
�…ο9ωι�.„_οΏ’ό�‡�έηύ�όΧ¨�+ο�Π�θθo—ώψ�ρ�Ήσ�ΗωΔάωΟ1ψρxw>+=^
|
||||
?•�ώΔΏ_Z�α^±τΉ7>γ�εΆλ3-?έοΫΧi|›ό—Ζ�¤ς_o�;‡ώ2ω·mmπ[β-Ο{ώύΌυ—²™έύόσϊ��ς_V�΅Νώtχ?ΣΏ��=Ώ'��OL��ϊΫ�•θ―-�Ηρoί�ωψΗό―½ώΗί�b�b�—νσϋKj�λο�¥ψKχ�σζ?=Ώδ�‘��“�ΧO�O—ψΏρ�α�Γ�gΡ�7Οώ“�?Ρ��ΪεμΞ�0�ρ�ηό?ω_��‡ώσΏuΞ�¬�²ι�ΛΡΏ΄WNύN�¬c�“�Οω?Ξ�qώ�ψ?ω�–σ�±�‰��'ώOόί¶ώ«Ε?GδW[όW;ώΟωO«τ'ώ�ύ‡�ϊ[υ�kχ�Ρ„�wίΕ0γλ�5ήϊό[_�R�³GςϋΡ8Ί„ΧγοΛς«NΏ«ύ�9<fϊ��~κσW›gωό�ω¤όΧ~�τίµώ›λΧςύ―MIόY:�λΘώcπςωΗxνυ―c®³ώ¥RϊιόΝΫ�IυΏ�ύ�ώΧε�Ο‘w�›ςύ―λ�Σ–Ώστ�Τ�ƒώG�γ�Η����?ώ/ΰψοΤ�:ρ�μ/μ?θ��Ο¦�ίΊ�O{�?o�uEύ ψώ�|ώΫφ�Ύ‡γ�ο^�γλ!όάσ—Ζο{yΌ~<ώο§<>‡�1ΗυΡωwχ?>�ƒ‘§Ώ~<~Δώφω)ΌΪ�-τ―Ν��φΏτωί9�ρ�_Ϊ>χΎ·έOoύ�β5—~zο9ϊό~�ΟΣ�θ�6ω'…�_Σ�Φε®�_8�γς«¦�sύΟZυ~|›όµΎ�[•ώ-λF�»}�»ώ��ςόΉϋa�b�Ω¶�π�γ�>π�ΟωkωΏΦσ���΅�µνΟΗ[Ο�b�gg��1�ΨίΦα“�Cώφ?ωπ?ωδ�α�Γ�‡�ύΟωψώ‡�?—�ΏΎ^ωX~ώΣΡ�ευ¤ΗwΫζϋ7�έοu}ΫΒρ/<ύρΗυ£?‰λ�ςϊύ\ψρxwύ¨ΟΰΟ?ψ?εηw£ΖπώΚπ�~G®±λOtτCrύ�Β>Η3ΦΨ7ωΏ¶ώΟΟ?Ψ9υ}
|
||||
/Ώ<�Ήyi…ύµιΏοsαΗpάύSσ©-�εωί²όηώαυX??}γΟόυ|ΜΙ�ΑϊύίΟλ?΄§Στχα•ιs¶―Jσ_κΏΧ‚Ί��γΏη£Ξ�1?”πKι��ύΞχ_qύKΟΟ΄�ΧΦW<��ζίΊόc�Αώί2ώµύOiΏ4g�΅»�²Ύ�ΛΫ�ηώΓcςΧί�Δύ�WΨ�`���†ό+��[}η‘�ψ�π�α�³κ�Γώ³Ξ�Πί2ύkώΩ~�c��WΫ�‰�CζΏΌβΊ¶�M�w^—Ζ¤ρ?mϋοJε£εύηυψOω]ί�Ώο#ρ·Yφ��ρ?Kφ?ϊ�ό―�xυ¶Ν��―Έ�·�Ηώ³m��¶
�ό?Ϋρ―ΡύO»ώοΛz½;mέ�L�/Ω�Ο‡ΔΎ‘ξ�VΫ�―ΐ�ϊρKωΔ�-ϋWτ�Ιφ_ϋ.ρΏυθ�ρς�Ι�_)�ΏΧώ“κνψ+ώ�ω—�―+ς―·�‰�Χ�~!?a��£?Ρλε>‡Ώ{Υ(}�ΏΟίoόxόΧWϊΉΐόmγ/έ�Hρ―νjψ_}ώg~ϋώϊCmϊkφ?Ό;ώ3Φ�Ίύλώ·9ψλφ�ƒ�αψί&ώμNψ7|ξ}ο½�Ύτχμ�ZύΟRϊ―j�?mλI�Π^�eω?ΪΈ½�σΪϊΏ���υ―ί�ύ�ό_KώΛδοΌσVύθ;ϊϊCό�Θ�vϊ»υγ—_Ξώ½ΰS�ΡFώo.���ύ¶µΗ��υ�ϊΟ_‡λΏ¥~UιόυθωχYηΏυΟ��Σ†ό…οπoδ�ΕυΜtΧί�ςΏοόώη]·^�±/]6�Ϊό'ΕO{ώήύϊϊΤ?΅ώφΏv��ίοϋ«ΧώΧ¶$ψkΓ�1�Τ�Ά�όoΉώ‡mωgέ�‹��ώ?»ώ?‰ύ7£��~ύ_ψϋ�ϊΏψΐό‰�Π�ΙZ�'θ���ϊΏψ�¨�g³ώ�υϊΏ2όg―ωόΗγ©�Kύί™ϋςο? >φ?φ?ρμβ�Θ�6ω?7ώ»bώ7ώ?θo%ώ�ύ�C›τ§ώυW¤?υ/ί_�oά�<^�o…ϊ/%ό[κοΙύ�kΤ�£ώ·½ϊ?θκ?R�Νnύ7μ?δϋΫςΕϊίkΤ?·ή�§Ύ�›S�|=ϋ�ϊ�Τ�§ώ?υ�-ι�•όο¬�_ςΥΦί�ότ?ϊ�?ώό�ψ�ί�Ώύω=ΰεζ�¬?ύγΎσΏO�χι�/…��αππI*_Ύς)'�ΟςS��!�ΏSπλψ—ΗoΫωzψόeόΗΰΏ>ηηΟ·�΅?τ_Cώω{ΙςηήΏ¶ϋέ©ό�7�=ΏχΟΤlΫy|κΊ[ί3ω?
Ώ†Om|κΊ�όπ?όo™�Αί¶ύ?�ρύwΏίνγ�sμ�Ρ„?B�O/σ�¥γξϋϊόkΫ�²ψΟ�ϊ·«ΔbZ�ΖΏ�ύn�ώχ{¥υί�Ώοw—®�ψ~γπσγύλ3τ�5τ›ύ<ο~~;ςί�_ΝΣ�νςΧΧ��ϊΦχΪτ™�φρυωΧ^λΨίΨν?ό�Δ$τ—βίBΏ^ψσθώΰo_—•?§ώκρ•r|ζ\/%U�9�i|Pσωτ�>όSψ�+Ύψί…Οχ�j‰_µΐ—ΗΏ¤τ—�m“Ξίσ�?oύ�Ρ_‡�¥φ�ϋW³ώ¥uω―έ�M[ώΛϊΏ¥ϋΈyiι?xΏϊ―3ωω‡όΓώ_Ηώ�a�Ψ�χΗ_JμμψώΧε»ψ£�ρ�α�C�ΫΦ�π?ό�Ϋαλω��ηό?η�Ησ'¥λO;�“ό/θ― ��η_f��Yηό�Νσ―>½ΒώμιύA�ώ�ό�φσ�µύQΟuς�g�Kίrώo�σ/��γό?ϋφΏ¶Ζsώ‡ϊ?�ΏF�qώω���τ·ε�Γώƒ�΅?υ_¨�g½ώΣΌϊ#=ώΟ;®�™ψ―T�O�‹�S�)�Ν�>―ώ���_?›gκΔ���£�©�Lύ?β�Ψν?βίΘς�μΖΏFφΗοζΦΥι�Cύκ�“�Gό�―��o�ϊ�Rύ#����OώΏnώΏΜώΛ�_§ώ?ώϊZ‹�Ώ�θxjχόp�λ\�μλ�ΧΥπ―~~mψΠϊkΡΏΝ~©εO��Ώ;ώw��¶ϊUωϊiσπ―ΑΏξωαψώ·‰Ώuϋ�πWύύ„ώ«άxηίzω�λµρΗυΥΰC�ΈoΝΎ—4dκw�ωΧΤΏ-ψΧΦ_n^RpRίkσίΉ�Μσ‘“�cύoςύgVX�όο>�θδΏ¦όΧ–Ώμ�Π�Φυ?τ·Kό�Δ^ΉaώΓ‘��Ύ>ϋώρx)όΪύΑϋ—λισ“µώ'©ώ9γωOi‰θϊ£΄¬�Ϊψ²ώ—Ε�δφΗ
|
||||
ώ�qϊKε�v�§τz‘®ΏήϋλΙ�#3΄σπΗμOw�3ύSφ―ώό�¥ύ�Ώ^Z―cϋΏ<ύυε�Ϊϊ«ο�όόοσ|j®λρ7β�ΨΗΨ�zύ�υνώσμ_Νώ―δ�ΩΞ�³Ξ�Φσ�μΚ?λώ_όψ�π�Yφ�Ιμ§ϊS7ώ�c�sώη®ηOΟxΖλΙ�χΑΏϊωµαCθ―A��Τ½�ήsυ•βϊ_ξ|IyΌ�}\u�σ/ωϊPmΧ¥τ“Β»�£Θy:Ο��Ϊ_
ΏΡΏσϊ{½§ωΏeύ¥Η»ψΘ�Ϊλ_›�?Gώέ}ώmΚ?μΝψίρoλψc�Ϋή�IκΏ¶ΧWΥgΥ]�–υίϊKείΌυ7―ώ―=ύχήψΏvόωύϋπ΅<~ώ?φφώθ―ι�ϊϋ)χ―r�λYλ?¦ Ώ¥Eδ�Η[�λλ_κnι�Sλ?“—_uϊ]ν�Οα1Σ�χ�Ιυιkν�36�cώ)�µίΏ½�Ο<�Νυλω‡ώΧ¦Ώ$ώ,��uδ
|
||||
�ϊϊ›'�α?δς�ρZλ_Ηώ\gύK�¤τΣω›·�“κϋύ―Λ��#�ξ>�6εϊ_Χ�§-ηι©�ύ�ώΗ����?ώό_ΐ>πί©�uβ?+Ψ_ΨΠ��M�Ώu��φώήώλ�ϊπ?ό�ωόώ¶ν�}Ηί½>ΗΧCψΉη/�ίχςx)όxόίOy|�cώ�λ£σοξοχ\ΚΣ_
|
||||
??bϋό^ν�ϊΧζEϋ_ϊόο�?ιxΗ/m�{ίΫξ§·ώGρ�K?½χ}~ΏΟηιGτ›ό“ΒΟ�―ιλς?μζλΟΤυ~ωUΣ�±όμΥ�ωρmςΧϊώoUϊ·¬�Τό§ΞΏ—ζίη®Ώη£<ξ~kΨΏΨ¶ν?ό�ψ�€|ΰsώίZώ―υό?βθmϋsΕρΦσΏΨ�ΩΩ�ΑΜ?φ·uψδ���‡ύOώόOώωψ�π�α�C�sώώ‡�α�Οε�――W>–��tτgy=ιρέ¶ωώΝχ{]ί¶pόOόqύθOβϊΏΌ~?~<ή]?κ3ψσώΟGωωέ¨1ό�Ώ2ό£ί‘λ_μϊύ�\ΏΆ°Ορ�υφM>Γ―�σsΕΟφ_N}�ΒΛΑ/Οn^ZαCmϊοϋ\ψ1w�Τ|jΛyώ·,�9…x=ΦΟΟGίψ3=sς_gπ�~�χσϊνι4ύ}xeϊ�ν«�ό—ϊοµΰ�ξ�ηψοω¨σΜ%όRϊ£tΏσύW\��σ3νγµυίΟ§ω·.�Ψ°�·�m�SΪ/ΝΩθξΏ¬ο�ςφ�Ή�π�όυχ?q�ηφ?Ψ�£τ�!�JηΗΦ_ίω_δ?ώ?όψ�¬ϊ�°�¬σ?τ·L��¶ί�Ψη�Υφβ��ω/―Έ®νΣΖ��Χ¥ρiόOΫώ;Η�Rωhy�y=ώS~Χχ�οϋHόm–ύΏbόΟ’ύ�ώ'�«'^½msγ�+ξ�-Ε�±�lΫΔΏmΓ'�Οvόkt�Σ®�ϋς�^οN[χΖ?ΣγKφ�σ!±o¤ϋΏΥφ�+πΏ~όίRώρΛώίύ²ύΧΎKόo=ϊgFό‡ός�WΚ�οµ�¤ϊG;ώ��ΏEώ¥ηλ�όΗλνβ�Ηu^ΌxΩ}Ες%–µλWΓΏϊωµαCθ―ωςk+¥Ύ��®$wόο>�~}/}ζό±�@�ώΥΟ�Γ�¶ωί6ώΦ_G½ΐψ½υχµογλ«Α·ώ’ϊ�¤σ―kψΧΦ�Τ�¦½ώµλ�®°ώ%ψί}ώΡ�ΘMω―-Ω�΅�λθo—ώψ�‰�ψω…q~bϊzοόΦξ�—Β―έΏχω>®[½ξz£„υ�rω—ηό©–ψ‹?>¬�—®2“?�™Β―6ΎτrΟ�ώΎ%~$yIγWsΖ�Σ_*��σ_‚�ΓΏ4ώΌfΛλEΊώzο―'��@ώλΦ�Σ—�Τ�ΠΜ?^aύ[>��}�ύΫW¥σ—cφgΩώΧµdψΟ³ΏηΝκόkm�PΫ�δνgωϊίΝxώΪ«†�τ�kσ�uω£WΓ�Ώ�·%�¬ϋρ�α�Γ�gΩ�'³�fθOMϋώΗώΗώW_�g<γo(�ί�κηΧ†ύ΅ΏύΟu®^οΗΉ
|
||||
7ήνύϊR®ΎRyΌ�½{>ύϊw1~ρσµ_—�O
|
||||
μz�ώ!oδι<kώk5όF�τλ�ιΧΤδ�Ο‘w�›ςϋ_3ώ·FόΫ:ώΨ�¶χ.^βlΒΧϊI_ο•―µϋ―°ώ-λΏ9τ—ΚΏyλ/½Ύjψ£�ή�Χ��"�΅ώ#τ�ηΟΟ�ΗώΓώΓ�ύ5ύ_�υ§ξ]�κώγΟΏυυ/υ?ϋq¤Ώ�σχρυψ{έϊΟuόsxΜτ��ύΤη―6ΟςωσΜ«?^»ϊοZ�Νυλω‡ώΧ¦Ώ$ώ,��uδ
|
||||
�ϊϊ›'�α?δς�ρZλ_Ηώ\gύK�¤τΣω›·�“κϋύ―Λ��#�ξ>�6εϊ_Χ�§-ηι©�ύ�ώΗ����?ώϊρβΕ‹ώοτ�ώΠ�ώίτ�ΎΖ�#³_εψλΪίπ?όo›�ι�kωυχγϊ�8�αρwΌάη±ώ“ξώµϋΝ��ΟχΏ�οίφΉχΥ{?)όφίΣ�•ώΏΗ�Ο?ΗωA�7γρwΏηΨ*λ_™3�ΪωO�ΎΗόεθ?¦?στLλοvψmγkϊίΊόο�'Υ�µώg5ύu�ΏΟί�ι�ΏVΏΎ¶�―ξ9¶ώΪϋjΫΏΨ¶ν?ό�Δθ�Θu®[ξ�I�ϊ�Π�Ηf�ϊ_Ϋ–�qέϊT�ϊm+υΉ—ΞΏ®ό―γ_[ΉyIΑI}�!��\·Ψ�οξψN�EμϊΒ�vωί&ώθόψ�Π�θψώ‡�ρΏυόGπηΕω—ί™Ξ��―χζ/εΧ³vώ'ω_ΠΏ„�όήϋk�Ρ;�£��lύό―£Ώ���λ?Χ�—��(χ―«��‘φΏ#�_σόΩ
|
||||
η_8�ΗωΫ/φ�Vρηόυ$ηΏΫδo<~¥σΟΤ�αόΏuω���ώ?‹ώ?μ?ψϊΫ¥?υ�lΫΪυGΦX�zψ―T�o$ώ#��P�I��iΖω?]�Hίtό,Όή_�»΄�Χ��Y·�Ρ�¶_Τ�³�Ηώ³m�ρBώ“�g7ώUΫ�ΔφσXώ_iώυϋΏR��ϊ�Τ�'ώoΡ�«ν�Σ®�/Υ?ςσ―δ�“�―��?n�IυΟ
|
||||
υ�ρ�Σ�Σnώ―T�σ[’ξώ―ωwς/ΝRψ)ωοΓ�ωόΑό]ύβγ»m+Αύ~>ώπsψ�Η‡υ—ΓZ0γψηα»y9γό67�ΠϊλΠ�Έ―ϋϋGC�BψΟGί}οθ�?Ύχο�9ψKΧ�Όω�ΗϋΧ�οάΎ!��¶•αΟε�~ψ5όύϊjρσΖχ†�αψί2ώΨ�ρψΏ�Τυ~ΞVοβeόGαΗγ��ςxθ�ΦΟGiώs�¥τ_Ηώ/γ�ώ΄<‹ρΟΟ�Ξϊ?ΛΟάυ�ΎρχiϊηοΏ�ώοΓ_ΊώηΝ�ΎΟ΅ϊω―)�Gεo�_ςΟΟώύ�ώ‡ώΠ�?ςΏίηίmk�£?πο�ψ�'βίρΏmνϋΗ��ΏWώ–Χ~|Nώ�ΖΏζΚ�ϋΔ��τ—Κ�~ψ!ύλγγυΊm+Ώυδ«ύώ©γρ�΄ν_ζΞΏ6�µβ?ΎΎvώ®�®ψρOβ�Ψ�λεΏ΄Ϊ_cφΏ–ύ#Ε_ΎtώΙ�#�ώ'�Ο�ό³ξ�Ε�‡���]��Τώ›•�―�…�±�‰�γ�π'ώCώωΏΠί¶�Oϋό�φω'λώΏάητϋόσOΪφ?η�8�Ηω?Ξ�±�!�έ|μμβ�Ψ�Δ�‘�%ψNΞιΐΏ>��τ·wώϋώ‡ώφθξ�υϊ_ϋOδϊW”Ζο{yΌ~<ώο§<^―�YωωGα§ϊ_εϊ¬LλψΏwύ�ϋ�kοΉϋΥύ�uϊΏΣ��ΓOκ�ο�―ήωnύύ��a†ό+ω?RϋυΏ�wω�ΗΦ_―ύƒόC�λΣ<ώ,¥�ς?…Ϋϊ›#�Χ[�ΨΘ?Λϋ[ψΟ³?ΗμYύύΟίOΏύ9�ώRψωρώu�»ίο™ϋ?©ώ_Οώ·¥�Χγ�{Ι?©ώΧί�Ϋ–θ�Υό£ςwfώ»ώ‘ϊΠ�θό�ψ�ρ�γ�Η�ώΰώΊρ�–ό£yς½ψ�-ωύmΣήώ3ήgϊχΟίοξψ��ϋώ‡�νπ?ώφ?-ώΗΨϋ©γsσο��ύn�£�πΙ�#ώ―ωY{ύ�oΥΏi{nώόχΑ―�ΟΩ�Θ�ύΓ¤ϊ·]ώ¶�—φ�³ν�Σ¦ΛϊΏ¶�ε;Χ�¶ύ‹ύgΫώΓ�Oό�ψƒ?ωΏ#ρ�q���ωΦσ‰�qώ�σ―��g�ΗωΞ�#�°�m��'�‡ό?μς�ΰς�Θ�Γ�‡��ϊ�sυ?ό�Γ�Φψ�λλε�ςρ?�οΕ)ΗwΫζΟΟΏϋΧkγ�λ/Ύρώέΰ?!όmΗpZα?sαΗγ·-„ΚλψoΫΉ�ΙΡ�δυ
|
||||
ϋ•ψΏ�±ώjπkλΏεωύη-αΣ?��m;χq°λπ΅�έθ?Ύ¶όΏ.Ύm|κωίy]’�:Cώ―Ϋ�«ύμωw�½�φΰW/½ΏήϊoΝ��ε?hλ?)ώηη>ϊζ�ω�;�cυOΚ?φ?μ-Γο·�Γ}�tύ‡}3gμΏβηϋ�Ώ·½�Σξ?ΌξώΗ¦ύίC�ω�¬υw?ω���ώΏOρ�a�Α�Πί.ύµύ�+^·ξ(ΟΟ\�ηύΦ�υψΛΰΧξ_φ�φΖ¤ρ?mϋ«�pώΞϊλωθ‰�¬ζ�o�ΏΝ²�W��Y²�Ρ�δiΖ―Wά�[��c�Ω¶��ΫΖ�ό?Ϋρ―Ρύ�Ώήgζ?Υν�rόσ<>τ�ωήΉ1ύ<w�·Ϊώώ_;�Ωzώρ�Oς�®θ�{ηώ«ί�47ώCώ?ω�+ΩΏ½φ�4�_;ώ‹�LώΝ��Ώίώ'ώΠη¨πχΦ8κ3Ό^ξsψ»W=��χΗψπϋόύζΐ�Η}¥�όΑί6ώR�§��ό«αµ�w~»ώƒώΠ_›ώ�υο���υΏnύ�Ί�aώΊυίΰψώ·‰?ϋ�ώ
�{ί{ο'…/ύ=ϋΏΦψ³”ώ«Ϊ�ΟGΫz’ΖµΧΏv�›µυ�λ�ΞύΠ�Θ�+δΏLώΞΛµκ�C�ΫΡ�Πϊγ�Gώsώψ��αόOΟωοωΧλ��·��ΛωΞ�sώ�σ���ηό?η�9��ύoλό?υΏm��ηόυ�ακ�sώίζωόψ�π�Yλ�Ωc�ΝθΎξωψϋίfύό?ΰώvγ?τ΅�τ·ξ�Σλ�½FύS›ώ?κ�R�W›�ο$�μΥ�ύ,ωΗώ‡όwϊ?c�c��Ηώ'ώ�ό§�;ώ?θo%ώ�ύ�Cκ�S��ϊ�«Π�ϊ—ο―�7ξ―�·Bύ—ώ-υχδώ�5κ�Q�Ϋ^ύτ?υ©�f·ώφς�ύ�mωΏbύο5κ�[ο�Sί�Ν©Ύ�ύOύκ�S��ϊ�–τ�JώΏwΦ�/ωΏjλoNώϊύ���?ώό�οΦ�ΏίώόπrσΦ‡ώqίωί§ΗϋτO�—ΒOιΏpψƒ?ψΏ$•/ίω”“�gω)Ε��ΟΏί)ψuόΛγ·ν|=|ώ2ώcπ_�σσηΫ�Πϊ―!�ό½dωsο_Ϋύξ�ΏTώΟ›��ίϋgj¶ν<>uέο™ό�†_Γ§6>uέ~ψώ·Μ�ΰoΫώ‰�ψώ»ίοφρ‡�9φ�hΒ΅�'�—ω��ρχ}}ώµνYόgFύΫUβ?±Ώ?-Oγί�~·���ϋ½�ϊoΗίχ»KΧ|Ώqψωρώυϊ�ϊΝ~�w?ΏωοΗ―ζι�vωλλiύλϋ?mϊ�Μϋψϊόk―Ώuμoμ?‹φώβ?ϊKρo΅_/όyτπ·‚Ώ―ΛΚ�SυψJ9>s®—’���ΗΏ4>¨ω|ϊώ)όΞ_όοΒη�ϋOµΔ―ZΰΛγ_RϊΛΦ�¶IηΏοyΟΏ�·ώΖθ―Γ�Rϋ†ύ«Y��ΊόΧξ�¦-�eύί�ύάΌ΄τΌ_ύΧ™ό�όCώa�―c�Ο°?Gμ�ϋγ/¥?φ?φ?ό�λςΏ]όΡ�ψ�π�΅�mλψώ‡�νπΏυόGΖsώ�σ�γω“�υ§��IώτΧ„Ησ/3Ο�¬sώΟζωW�^aφτώ Oiώϋω�Ϊώ¨η:ω�³ΞΏ¥Ώo9�·ΖωΞ�qώ�ύϋ_[γ9�CύΞ_£�8��όΗ�ƒ�ϊΫς�a�Α�Π�ϊ/Τ�³^�i^ύ‘�ηΧ�LόW��'‹��Ε�Φ©�”ΖΏζ�W�GΗ�/��Ν³?uβΔ�Ρ�Τ¦ώρμ?‹φρoδ?ωvγ_#ϋΏγwsλΏκτ�΅ώ?υ�Ι�#ώ��WΗ�·Nύ©ώ‘ΖΘ�'�_7�_f��ε�―S��?ύ?Ε�_OτΆ‡��ρ|ιλ�^�sί¦―Χξ�—Β―έΏχωΐό?�W-’°ώIωsψ’β~…πjψΧΖΧ_e|ϋαχήϊCϊkΧ?Ό;ώ�υΏ^ύλZύ«s«9ψλΤƒ�αψί.ώΦν�Γσχϊ/sπ�λεO<ξ�>bό�λgϊΏ~?ώ�>τχιΏmηώ79}χΉ‘�_ΫώoΑΏ¶ώrσΫ#ξϋp>5ΧΏv�›ΦΏ�ςοΞύΠ�Θιϊϋ¦Ν�Ώgω�–Λμ�Π�θθo—ώψ�‰�Tν®s�ψ�‡Ϊ�#ρ�ΈΙψωΛ1ωΫ7ΎlΟΘϊΏHε�=γ}τ©ο�{η_2ώόό�λO[Ύ�ω�]>qlίηΖ—ύ�zπ‘�#ϋΏp?#�]ω?²�Χ_Λό•χwγΏyώoβ�Δ?±�ο–��^?µ-�GΣώΡ}~νω'��ό?ψ�ό?«ςΟΊ�ώ?ό–ύ2ϋoFώΏnόώΗώΗώΧ:�sχσ/ΰώ�…�{υΏ¶ό—κ�4όπ»ϊώ ϊC-ϊKλmΫωϋη#]_κωHΧ³ZγόΛXύ«yς_
|
||||
_Z�φL��?�t–Φ?σy ―��ψ�ίωόW‰�[Φίλ=Ε�ΟΗ™�µΧΏ6��ό―�χ|Μ��Τόϊσ�®gSώa�«Η�Ϋψ?φ�ημ�¤ύΣ®θΏφΞυo]�iΣΟϊϊ»�ό��Χ��"�΅�Zπ±�°�π�C�χϋΏθi»�#ύ_-®ϊ�Π�‡ώ?Vϋ� �Π�²ϊ―σϊ�jΛλύ±��φδςV�λ1ϋ�υ/νΏ+¥�}ϊ�¦χRύ―c�£�uω�sδ�T�λμ�Λ?τΏ®�―��<&gζ�·λ©�ύ�ώΗ����?ώόΰώΰ=ώ�σOσδΏ�ώ·.�΅?ϊ��§}?Ί’�ΟΊ�ϋώ‡�ρƒ?ωίώΗ}ύ�γsρ/Mψ#τ�¤ρδ�α�ο�ηόωµρΉψ�λ�ψΏμ³”~³�ηέΟoGώ»υ<S�·Λ__�o[ϋσηκΟqώC�ώ#σί>Ύ>�ΪλoϋϋΟΆύ‡��ρ_πλρiόgΜΏΌ�ό·™�Kό�ύη_‰�°�γό?η�‘Ψ�Vρ'�‡ό?μς�ΰς�Θ�Γ�‡��ϊίΞω/ψώ‡�mρ�λ‰^τπρ?��λ\?_wςσυ?χmϊzνώρx)όΪύ{�ο³ρυ" ϋ�τ|–®/ιύ¥Οί?�ΏΪ«vθ/ϊΟ…―)ίεωίςόη――W>³?>χόώύ�Α?®ΧΖΧΟψΛς_¥ς¥ώO®}Ύ�Uόϋωσ�ξώ{_�¦Φ_mΌ=ζύυ/Ν��ε?hλ?)ώΗύΓω?ζΉuώ��Ήσ?V�ΤΆόΓώgkύzΏύΎ¤λ«¶_κί•�·φΉϋ?νώΓϊϋλφΏ.ύ¬―Ώ{Κόψ�π�}‚�ϋώ‡ώ–ν}�£&|λφίΨόΟσήsύΟυ�ώϋw.ό3ώ!όyρiόOΫώΓ?�Gr~όXώ—β?kω�ϋβgσχ�ο���G�[��΄ΔΏcyΛ3ιόkΛλρμ?»φρoδ?ωvγ_’ύ�Σ�ωwμO¶έώOΕ?KγƒλΡ�Gτ�άύίjϋ�wς�=σ�η���$�―¦�O�5β��!��ό�Υς�{μΏω��ρ_ό�#ό3/ώ―c��?Ζu$γχ―Μ+χ»ΪψΪχΐ>πί?νx>rς%φ?\
Ώ†Ϋώ»μ�Π„ύ΅Ώ6ύΟυ§γϊΥξ�cυ―συ§ο��έη?½��χoΞο?ζΰ�‡_ΗΏe�YΪ�ΐ�πΏuώ·‹?ϋ�4|λοΦχΞΏXΎ.�ηUν�Vό΄ηoΖό§ε―“³ρυηcήψuυΏμωο2�θδ��ς�]ς—ύϊίΊώ‡ώΠ�Ώeωoϋό3ψ�σ�Υόόλαkζ�ΕyssΞ_�σ��yyιό;―Zό«-�―~OόmFόKχόOjώΫσ/Sψ§σ�άσrώ§®�BϋuίeϋλΪύ��Ήπχ}Φώί‚ό?�κη³Ό’Π_[ώΧπΏάΌ΄Ξη�λ_ϋΊ6�έ}ώ�ΐΏξόοΌώχ<�όIη[χ?ιύΚ�υ7Ύ�JΫ�©ρ%ϋ�?wΎiΜώ/ΫπΏ6��οΏ―X�Ϊϋkς�ϊ�ψ�π�α�³[�gάώ›±ώ΄ν/ψϋί¶ύ―Ύώ€|ΰίPώΏώuς5ψΠϊkΠ�όώχσΞλq|*w=Δήψπύ8WβζίΥΚςοΥόχΓ/�χΏί6�άL–>�οsηί―�8‚<Ύφύy�Γ―¶ώZΗη>―±ώµω�~ςοξσo]ώΩµ�uγϊρoλψc�Ϋ¶�χ=”�nύψυaΗε―�ίοπώ묻ϊoύ¥ςoήϊ‹Η·α�ώΣ‰�kΗ‘�Φι?^�½�ώaό?ξ?€ύ‡ύ‡�ϊλΡΕϊSχ¨¥]σ:ψΦηί�ϊ—ϊ�¥οΊυ�εψIύ�Ϊο�ΓΌϊγiψρ_όόΧϊ�ί³ώ�θ�Υκ�χΛ/©ώΡ–�)όΗ���σ�!��ΐ—ΑΧ~Χ^�α{«ύyΥόχΓ/�/}?g�7w�©m�ΫΣ�kρ�ύδίέηί®όc�·��ο�ςw�ώ‘ϊΠ�θό�ψ�ρ�γ�§�π�|ϊΏΣ�ϊCϊΣ�ϋ½ρ�¶όΣ9ψλΪίπ?όo›�ι�k{�±οαψΪηήχήϋIαKό/χylώέύkχ›?O�_ϊΏ–ϊΟ»~AΗϊ γϋ.‹?Δγλό�Ξυ/‰�Μ™νψO�ώ‡ώ<®�κ�ΌόK?;ό΄ώ�ΗΧτΏuω?ή�O��kύΛjϊόκώVϋ?kΣΫΪΦ�Υύ/ΗΦ_{�Cmϋϋϋ�?ρϊ/ψVϋ��‡ώ?τ�±Ϊ�‡ώΧ¶ε½}ω]:�Ϊό'ΕO{ώΰ?δςψwν�wgό?±�"φ?ύ?α»όo
τ?ώ?όθτ?ό�Γ�–ψίzώ#ψsώ…σ�ϋ^Ξ�<ΎΝ�*ηλη’�k›ώϋ>~L�}α»ϋ―qώe½σ?οΜζόo®�ex>(UΏlFώ©�]ύό�Ό��υόΝσgλ��·tώ�σ���g�ΟωΞ�Ψ¬�3~ώ»MώΊϋϋ6Χ:ϋμΞ�sώ�ώ?όφόΨ��†ώ6ιOύ?ό+Τ!YΝ�fε]�‘Ζ�V°�¤ύ�¤ηοV©�—��ΧGλΧφ�λΕ�¬Ψ�θςΏ¨�g7ώ�ύgΫώ#ώ�ό'�ΟnόKΪΏtΞώs½ώ?Τ�§ώ?υ�‰�[��―θ�{gύ‰ώ™sώ•ός�5νί9ύλGυ�vό�?ύ?νζ„τ=�/G�σό1�ρ�Ώ�ψΈ.IΊώΛΉ~Κ»ΰ_ύόΪπ΅?τΧ•ηχίοw^Ώ;ώχ�ι���kχΏφωαψί2�ƒΏMϋ�ήυ§επ΅ΏnύWmύ«_tώίsςΣ�]Ώ<ή�~%ω;�»Ο?ϊω―Q�[WώZί�΅�Ρ�Πί.ύρ�γ�sη;�σ‰Ήσ�cπγρξ|VzΌ~*�ό‰3Ύ΄ώΓ½bιso|Ζ�ΚE=ΦgZ~Ίί·―��ψ6ω/�?IεΏήώwύeςoΫΪΰ·Δ�Z�χόϋyλ/e3»ϋψηυ�;εΏ¬ώC›ύιξ¦9�{~Oώ7ώ��ώ¥υ?¶�+Ρ_[ώ�γίΎ�σρ�ω_{ύ[�Ώ�ΔώΕώ/Ϋη-φ—ΤώΧί�Kρ—ξ�ηΝz~Ι�#�ώ'�―�>�.�πγ�Γ�‡�ΟΆ�o�ύ'=Ά�µΛ�Ψ���a<γΟωςΏ8�ύ-ζλ�?Y'ώeΣ�—£i―�ϊ�<�XΗώ'��σ��γόρς�-η�c��'ώOό�ψΏmύW‹�Θ―¶ψ―vό�σ�VιOόϋ�?τ·κ�Χξ?£ �οΎ‹aΖΧ?kΌυω·Ύώ¥ώg?�δχ£qt ―Ηί—εW�~Wϋ�sxΜτ��ύΤη―6ΟςωσHω―ύώιΏkύ7Χ―?δϊ_›ώ’ψ³tώΧ‘�ZύΗΰ?δς�ρΪλ_Ηώ\gύK�¤τΣω›·�“κϋύ―Λ��#�ξ>�6εϊ_Χ�§-ηι©�ύ�ώΗ����?ώό_ΐ>πί©�uβ?+Ψ_ΨΠ��M�Ώu��φώήώλ�ϊπ?ό�ωόώ¶ν�}Ηί½>ΗΧCψΉη/�ίχςx)όxόίOy|�cώ�λ£σοξ|ώ#O)όxό�ύνσSx=΄�[θ_›�νισΏsώ¤γΏ΄}ξ}o»�ήϊΕk.ύτήsτωύ>�§Ρ�mςO
|
||||
??Ύ¦�Λ�\�Ώp>ΗεWM�ηϊ�µκ�όψ6ωk}�·*ύ[Φ��ώwϋ>wύ=εωsχ[ΓώΕώ³m�α�Η�|ΰ�σ�Φςη��C�kΫ�+�·��ΕώΟΞώώcώ±ΏΓ'�‡ό?μς�ΰς�Θ�Γ�‡��ϊ�σ�π?ό�.�}½ς±όό§£?ΛλI�ο¶Νχoώ»ίλϊ¶…γ_xϊγ�λGΧ�ευϋΉπγρξϊQ�Α�π>ΚΟοF�αό•αύ�\�bΧ�θθ‡δϊ…}�g¬�°oς~mύ��+~ώ°�rκϋ^~yώsσ�
|
||||
ϊkΣίηΒ�αΈϋ§ζS[ώΛσΏeωΟ)όΓλ±~~>ϊΖ�ωλω�“�:ƒ�τϋΏ�ΧhO§ιοΓ+Σηl_•ζΏΤ―�t�?ΗΟG��c~(α—�¥ϋ�οΏβϊ—��i―�®xώ;ΝΏuωΗώƒύΏeόkϋ��~iΞώCw�e}�—·�Ού‡Ηδ―Ώ�‰ϋ?―°�Αώ¥�ωW:�;¶ώϊΞ�"�ρ�α�Γ�gΥ�‡ύg��΅ΏeϊΧό³ύώΗ>�―¶��‡ΜyΕum�›6ώοΌ.��HγΪφί9ώ”ΚGΛϋΟλρ�ς»Ύ�ίGβo³μ�γ–μτ?ω_=ρκm›�_q�o)ώ�ύgΫώ#ώm>ω¶γ_£ϋ�vύί—�τzwΪΊ7ώ™_²��‰}#έ�¶�_��υγ�–ς���[φ�®θ�“νΏφ]βλΡ?3β?δ�“�ΏRώ―ύ'Υ?ΪρWό�-ς/=_Wδ?^o��?®υβχ―Μ+χ»ΪψΪχΐ>πί_*®†_Γ�j�λΥπ΅?τΧ¦Ώfύ΅»γχω—ϊζΰ―[ώ‡�mσΏ]όΩ¤α[·Ύ�kυKηyUϋΏ?νω›1��ύgΦΥ�²ηΏΛό£�‘�+Κ�wΙ_φθλϊϊCό�–ε?υ�8�ΟωΞ�τ���Q�oΝσ�δ�rώ�σ���ηό?η�9�ΟωΞ�c[;�o¥ώ7η�9�Cύκ�S��σ���Η�‡���¥ώ�γφί�υ·ζωKό�ύo»ώ?π�|»ρϊΏΠ�ϊΫυ�Χ�ϋ½υOϋ�¨�k»ώοzό'ωw�ϊΏ¶εϋς�mχΖώ'ώOό�ψ?ρ›ςίz�wλώ?λτ·�ΗώΓ�ύ©�Ο;υ™[οsόΗ²ϊsΪυ_Jψ�>��_»ώυΏΦ�AίS�‘ϊovλΏΑΜ7ϋΫςΕϊίϊυΟχ�iΫ�]·�Τµ�©�Oύκ�S�ί†ώ_Ο�χΞϊ�ύ3Η��ώG�γ�Η�����»υ�΅?�N�η<Ύ��ρ�gό]Η‡ςύ�O9ω–�ΧΒΏώωµαCθΏ†όΠώ»;ώχ�·>Οο-ΧηρνώΧ<?ό�[ζπ·m�»σ�ΞΰΞOϊΏχ?»ϋϋg.σώo)όx|Ι�ύϋνί�υΚΓ›�xΌ�jΌ~
|
||||
�ύ%η�¥ρmύ«οΤ��μ{θοwλΗηχίοόϋ]ώή|ί_{ύ�ύ”�?Ζ%��ψόΟ�__Ίo‰ήyzµλΟ6ω'…/ύ½]ω/©�1C�ηλ?ΤυΏ΄ώƒυύ�6ύSσΧ³ώΛγΫτ�ΎΟ]}υotν_μ?Ϋφώβ?βωc<γλρ�?iό%®‹’®�\zώςψπZό;9~Rψςψ•tώ¥τΏvύ]ύόΪλO‹�Χ«?�^ψΦεΏv�7mώΣο? | ||||