Package Details: wireless-regdb-pentest 2020.04.29-1

Git Clone URL: https://aur.archlinux.org/wireless-regdb-pentest.git (read-only, click to copy)
Package Base: wireless-regdb-pentest
Description: Central Regulatory Domain Database with txpower/channels modified for pentesters. please respect the law in your country
Upstream URL: http://wireless.kernel.org/en/developers/Regulatory
Licenses: custom
Conflicts: crda, wireless-regdb
Provides: crda, wireless-regdb
Submitter: muhviehstarr
Maintainer: None
Last Packager: muhviehstarr
Votes: 6
Popularity: 0.139138
First Submitted: 2017-04-16 13:17 (UTC)
Last Updated: 2020-12-03 02:13 (UTC)

Required by (174)

Sources (7)

Latest Comments

FabioLolix commented on 2021-08-14 21:33 (UTC)

python2-m2crypto no longer exist, since a compiler is involved (export CC=gcc export CXX=g++, which are already the default, really need to be set) can't be an arch=('any') package

francoism90 commented on 2021-04-02 07:33 (UTC) (edited on 2021-04-02 07:36 (UTC) by francoism90)

Seems a new version of regdb is avaliable (2020.11.20-1). Is it worth the upgrade? :)

Thanks!

muhviehstarr commented on 2018-11-07 11:40 (UTC) (edited on 2018-11-07 11:53 (UTC) by muhviehstarr)

i have updated the versions and fixed the regulatory.bin usage

please ignore PKCS#7 signature not signed with a trusted key iw reg is using regulatory.bin and not the db :)

modded doms are now 00,GB,CN

[22949.616660] cfg80211: Loading compiled-in X.509 certificates for regulatory database

[22949.616849] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [22949.617226] PKCS#7 signature not signed with a trusted key [22949.617231] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid

$ iw reg get global country 00: DFS-UNSET (2402 - 2494 @ 40), (N/A, 30), (N/A) (5170 - 5835 @ 80), (N/A, 30), (N/A) (57000 - 66000 @ 2160), (N/A, 40), (N/A)

$ iw reg get global country GB: DFS-ETSI (2402 - 2494 @ 40), (N/A, 30), (N/A) (5170 - 5835 @ 80), (N/A, 30), (N/A) (57000 - 66000 @ 2160), (N/A, 40), (N/A)

$ iwconfig wlp0s20u3 IEEE 802.11 ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=30 dBm Retry short long limit:2 RTS thr:off Fragment thr:off Power Management:off

francoism90 commented on 2018-10-29 15:55 (UTC)

@muhviehstarr Is this bad?

[  190.577693] PKCS#7 signature not signed with a trusted key
[  190.577697] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid

Thanks.

francoism90 commented on 2018-10-11 16:17 (UTC)

Thanks for the update(s)! :)

muhviehstarr commented on 2018-10-07 19:45 (UTC)

also added copy of all pubkeys

muhviehstarr commented on 2018-10-07 19:24 (UTC)

python2-m2crypto is needed for crda python-attrs added

francoism90 commented on 2018-10-05 13:29 (UTC) (edited on 2018-10-05 13:31 (UTC) by francoism90)

@muhviehstarr

ModuleNotFoundError: No module named 'attr'
make: *** [Makefile:60: regulatory.bin] Error 1
==> ERROR: A failure occurred in package().
    Aborting...

Missing python-attrs, and don't think you need the python2 part. :)

muhviehstarr commented on 2018-10-05 09:24 (UTC)

Please try again now

also updated the pkg to latest version

francoism90 commented on 2018-10-05 08:44 (UTC)

Also these two lines seems to be missing in PKGBUILD:

install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.db "${pkgdir}"/usr/lib/firmware/regulatory.db
 install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.db.p7s "${pkgdir}"/usr/lib/firmware/regulatory.db.p7s

Resulting in cfg80211: failed to load regulatory.db

francoism90 commented on 2018-10-05 08:33 (UTC)

==> Starting package()...
Generating private key for root...
openssl genrsa -out ~/.wireless-regdb-root.key.priv.pem 2048
Generating RSA private key, 2048 bit long modulus (2 primes)
..........................................................................................+++++
......................................................................................+++++
e is 65537 (0x010001)
Generating public key for root...
openssl rsa -in ~/.wireless-regdb-root.key.priv.pem -out root.key.pub.pem -pubout -outform PEM
writing RSA key
Generating certificate for root...
./gen-pubcert.sh ~/.wireless-regdb-root.key.priv.pem root.x509.pem
Generating regulatory.bin digitally signed by root...
./db2bin.py regulatory.bin db.txt ~/.wireless-regdb-root.key.priv.pem
Traceback (most recent call last):
  File "./db2bin.py", line 6, in <module>
    from dbparse import DBParser
  File "/tmp/makepkg/wireless-regdb-pentest/src/wireless-regdb-2018.05.31/dbparse.py", line 3, in <module>
    from builtins import bytes
ImportError: No module named builtins
make: *** [Makefile:60: regulatory.bin] Error 1
==> ERROR: A failure occurred in package().
    Aborting...
2018-10-05 10:31:05,378 - wrappers - makepkg - ERROR - makepkg query ['makepkg', '-cf', '--noconfirm'] failed in directory /home/archie/.cache/aurman/wireless-regdb-pentest
~~ the following packages are now orphans
:: community/python2-m2crypto

Thanks @DigitalPioneer for the needed libs to get it working. :)

DigitalPioneer commented on 2018-06-26 04:42 (UTC)

Missing build deps: python2-attrs python2-future

muhviehstarr commented on 2017-12-31 00:19 (UTC)

i have fixed the package and updated wireless-regdb to latest version.

Best to use the BO Domain (iw reg set BO) - it should have all channels unlocked at 30dbi (2,4 ,5 and 60ghz)

tested:

iw reg get global country BO: DFS-JP (2400 - 2494 @ 40), (N/A, 30), (N/A) (4910 - 5835 @ 40), (N/A, 30), (N/A) (57000 - 66000 @ 2160), (N/A, 40), (N/A)

Please report back

andrius4669 commented on 2017-11-15 15:28 (UTC)

==> Starting package()... Generating private key for root... openssl genrsa -out ~/.wireless-regdb-root.key.priv.pem 2048 Generating RSA private key, 2048 bit long modulus .........................................................+++ ............+++ e is 65537 (0x010001) Generating public key for root... openssl rsa -in ~/.wireless-regdb-root.key.priv.pem -out root.key.pub.pem -pubout -outform PEM writing RSA key Generating regulatory.bin digitally signed by root... ./db2bin.py regulatory.bin db.txt ~/.wireless-regdb-root.key.priv.pem Traceback (most recent call last): File "./db2bin.py", line 126, in <module> from M2Crypto import RSA ImportError: No module named M2Crypto make: *** [Makefile:58: regulatory.bin] Error 1 ==> ERROR: A failure occurred in package(). Aborting... please include python2-m2crypto as dependency ... GEN keys-gcrypt.c Trusted pubkeys: pubkeys/linville.key.pub.pem pubkeys/root.key.pub.pem pubkeys/sforshee.key.pub.pem CC libreg.so gcc-5: error: unrecognized command line option ‘-fno-plt’ make: *** [Makefile:122: libreg.so] Error 1 ==> ERROR: A failure occurred in package(). Aborting... please filter out -fno-plt from CFLAGS ... LD optimize EXIST /usr/lib/crda/regulatory.bin ERROR: The file: /usr/lib/crda/regulatory.bin is missing. You need this in place in order to verify CRDA. You can get it from: git://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git Once cloned (no need to build) cp regulatory.bin to /usr/lib/crda/regulatory.bin Use "make noverify" to disable verification make: *** [Makefile:113: /usr/lib/crda/regulatory.bin] Error 1 ==> ERROR: A failure occurred in package(). Aborting... so I did how it told me, it then compiled but when installing I got: ... (1/1) checking for file conflicts [####################################] 100% error: failed to commit transaction (conflicting files) wireless-regdb-pentest: /usr/lib/crda/regulatory.bin exists in filesystem Errors occurred, no packages were upgraded. had to install with --force, only then it worked

MiAl commented on 2017-10-21 15:50 (UTC)

Hello! When I try to install I get the error: patching file Makefile GEN keys-gcrypt.c Trusted pubkeys: pubkeys/linville.key.pub.pem pubkeys/root.key.pub.pem pubkeys/sforshee.key.pub.pem CC libreg.so gcc-5: ошибка: unrecognized command line option «-fno-plt» make: *** [Makefile:122: libreg.so] Ошибка 1 ==> ОШИБКА: Произошел сбой в package(). Прерывание...

muhviehstarr commented on 2017-06-19 10:54 (UTC)

my awus036nha locked at gb reg: [timo3@Funix wireless-regdb-pentest]$ iw reg get global country GB: DFS-ETSI (2402 - 2482 @ 40), (N/A, 30), (N/A) (5170 - 5250 @ 80), (N/A, 30), (N/A), AUTO-BW (5250 - 5330 @ 80), (N/A, 30), (0 ms), DFS, AUTO-BW (5490 - 5710 @ 160), (N/A, 30), (0 ms), DFS (57000 - 66000 @ 2160), (N/A, 40), (N/A) phy#0 country GB: DFS-ETSI (2402 - 2482 @ 40), (N/A, 30), (N/A) (5170 - 5250 @ 80), (N/A, 30), (N/A), AUTO-BW (5250 - 5330 @ 80), (N/A, 30), (0 ms), DFS, AUTO-BW (5490 - 5710 @ 160), (N/A, 30), (0 ms), DFS (57000 - 66000 @ 2160), (N/A, 40), (N/A)

muhviehstarr commented on 2017-06-19 10:51 (UTC)

@p90 please check the new version

p90 commented on 2017-06-10 19:52 (UTC)

Hello, I am afraid the package doe snot do what it is supposed to do. After isntalling tthis package, regdbdump still shows that the regulatory.bin is still the stock one limiting you to 20db.