Guest User

Untitled

a guest
May 16th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.29 KB | None | 0 0
  1.  
  2. WonderHowTo
  3. NULL BYTE
  4. WONDERHOWTO GADGET HACKS NEXT REALITY NULL BYTE
  5.  
  6. FORUMMETASPLOIT BASICSFACEBOOK HACKSPASSWORD CRACKINGWI-FI HACKINGLINUX BASICSMR. ROBOT HACKSHACK LIKE A PROFORENSICSRECONSOCIAL ENGINEERINGNETWORKING BASICSANTIVIRUS EVASIONSPY TACTICSMITMADVICE FROM A HACKER
  7.  
  8. HOW TO
  9. The Ultimate Guide to Upping Tx-Power in Kali Linux 2.0
  10. BY SINGULARITY 02/03/2016 12:47 AM
  11. Yes, I understand some people may consider this a repost. However, I have been searching for this answer for 3 weeks and after reading numerous reddit post, Kali Forums post and Null byte post I finally have gotten it to work for me. I would like to compile and share this information with you guys.
  12.  
  13. Also, this guide addresses the
  14. /bin/sh: 1: pkg-config: not found
  15. /bin/sh: 1: pkg-config: not found
  16. /bin/sh: 1: pkg-config: not found
  17. /bin/sh: 1: pkg-config: not found
  18. Makefile:76: Cannot find development files for any supported version of libnl. Stop.
  19. Note there is one more asterisk, but the website formatting messes it up
  20.  
  21. Error, If your only looking for a fix to that, scroll to the Troubleshooting area.
  22.  
  23. WAIT
  24.  
  25. Removing all restrictions is illegal in the United States. This tutorial is only for educational reasons, and if you choose to apply it and break the law, then that is your choice and not mine.
  26.  
  27. Lets begin.
  28.  
  29.  
  30. Prerequisites (Requirements)
  31. Luckily, there are not many and if your looking at this post, you probably have them.
  32.  
  33. Some form of Linux (I will be using Kali)
  34. An adapter able to amp up the TX Power, (check this post out)
  35. Basic Linux Skills
  36. Run 'sudo apt-get update' before trying guide.
  37. Step 1Dependencies (Required Files)
  38. To begin, you must first install the required dependencies to your Linux Distro.
  39.  
  40. Simply open up a terminal, copy and paste this command:
  41.  
  42. apt-get install libnl-3-dev libgcrypt11-dev libnl-genl-3-dev
  43.  
  44. I already have it installed, so it should look somewhat similar to what the pic says.
  45.  
  46. Note: If you are not root then you need to add 'sudo' before apt-get Ex.: sudo apt-get install .... this will ask you for your password. Simply type it in (it will not pop up) and press enter.
  47.  
  48.  
  49. Step 2Download and Extract Required Files
  50. Download
  51. We need to download two files, CRDA and wireless-regdb . (Click the file names to navigate to the websites to download them.) Be sure to download the <filename>.tar.xz version of the wireless-regdb file. Ensure you download the latest. For CRDA select CRDA-3.18 (Remember a new version could be out) and for wireless-regdb scroll to the very bottom and select the newest.
  52.  
  53.  
  54. Move these to your desktop.
  55.  
  56. Extract
  57. Open a terminal, navigate to your desktop and run these commands:
  58.  
  59. unxz crda-3.18.tar.xz
  60. unxz wireless-regdb-2015.12.14.tar.xz
  61. Copy & Paste may not work, be sure to change the filename to what you downloaded
  62.  
  63. Then Run:
  64.  
  65. tar -xf crda-3.18.tar
  66. tar -xf wireless-regdb-2015.12.14.tar
  67. Same as previous note
  68.  
  69.  
  70. Now you should have the two files fully extracted on your desktop. Delete the old tar files.
  71.  
  72. Step 3Editing Wireless-Regdb
  73. Change Directory to the wireless-regdb folder,
  74.  
  75. cd ~/Desktop/wireless-regdb-2015.12.14
  76.  
  77. Then type:
  78.  
  79. ls
  80.  
  81. You should see a file named 'db.txt' We want to edit that file.
  82.  
  83. sudo nano db.txt
  84. If you are not root, you must use sudo are your changes will not be saved
  85.  
  86.  
  87. The first entry we see 'country 00' That is the world domain. This is what your card is first set to.
  88.  
  89. We are going to edit Bolivia. In the db file, it is known as BO. Scroll down till you see BO.
  90.  
  91.  
  92. Here you can see BO's tx power is maxed at '20.' You can push this as far as your card can go, but we are going with 30, which is usually a safe number.
  93.  
  94. Change the 20 to 30 and hit CTRL-X, Y, and Enter.
  95.  
  96.  
  97. Running an antenna with this power can possibly be a health hazard. Easily avoid this by not placing the antenna directly on or in you.
  98.  
  99. Step 4Update Old CRDA with New CRDA.
  100. Inside the wireless-regdb-2015.12.14 folder, type the command:
  101.  
  102. sudo make
  103.  
  104. This creates new files inside the folder.
  105.  
  106. Now, we change to the soon-to-be old CRDA folder.
  107.  
  108. cd /lib/crda
  109. List the files
  110.  
  111. ls
  112. Now change the 'regulatory.bin' file to 'regulatoryOLD.bin'
  113.  
  114. sudo mv regulatory.bin regulatoryOLD.bin
  115. Now change back to the wireless-regdb-2015.12.14 folder on your desktop.
  116.  
  117. cd ~/Desktop/wireless-regdb-2015.12.14
  118. Copy new regulatory.bin to crda folder
  119.  
  120. sudo cp regulatory.bin /lib/crda
  121. Now, change back to /lib/crda and type: ls
  122. Ensure it contains 'regulatory.bin'
  123.  
  124.  
  125. Step 5Copying PEM Files to Validate
  126. Change to ~/Desktop/wireless-regdb-2015.12.14
  127.  
  128. Type this command:
  129.  
  130. sudo cp (asterisk).pem ~/Desktop/crda-3.18/pubkeys
  131. I cant type the asterisk due to the website formatting This is what it is suppose to be
  132.  
  133. Then this:
  134.  
  135. cd /lib/crda/pubkeys
  136. sudo cp benh@debian.org.key.pub.pem ~/Desktop/crda-3.18/pubkeys
  137. These commands copy .pem files used to validate the regulatory.bin
  138.  
  139. Step 6Editing Makefile to Fit Kali 2.0
  140. cd ~/Desktop/crda-3.18
  141. sudo nano Makefile
  142. Change the 3rd line from: REGBIN?=/usr/lib/crda/regulatory.bin to REGBIN?=/lib/crda/regulatory.bin
  143.  
  144. See the difference? Simply remove the '/usr' from the path.
  145.  
  146. Step 7Installing
  147. Be sure you are in the crda directory. cd ~/Desktop/crda-3.18
  148.  
  149. Run:
  150.  
  151. sudo make
  152. sudo make install
  153. If you have an issue here, look in the troubleshooting section.
  154.  
  155. <PIC>
  156.  
  157. If our screens match, your good.
  158.  
  159. Step 8Amping TXPower
  160. Reboot your pc and type in these commands:
  161.  
  162. sudo ifconfig <wireless adapter> down
  163. Repeat this step for all wifi adapters you have
  164.  
  165. sudo iw reg set BO
  166. sudo ifconfig <wireless adapter> up
  167. Repeat this step for all wifi adapters you have
  168.  
  169. sudo iwconfig <your adapter, in my case wlan1> txpower 30
  170. Now type: sudo iwconfig
  171.  
  172. and you should see your adapter with TXPower: 30
  173.  
  174. <PICS>
  175.  
  176. Finished
  177. Awesome! If everything worked for you, good job! If not, look at the troubleshooting area down below. Please leave a comment and kudos if I helped you :)
  178.  
  179. ------------------------------------------------------------------------------
  180.  
  181. Step 9Troubleshooting
  182. I will add to this part if any other problems arise
  183.  
  184. Cannot Find Development Files for Any Supported Version of Libnl. Stop
  185. Arises: In the final step when typing: make and make install in the new crda directory.
  186.  
  187. Full Error:
  188.  
  189. Also, this guide addresses the
  190. /bin/sh: 1: pkg-config: not found
  191. /bin/sh: 1: pkg-config: not found
  192. /bin/sh: 1: pkg-config: not found
  193. /bin/sh: 1: pkg-config: not found
  194. Makefile:76: Cannot find development files for any supported version of libnl. Stop.
  195. Note there is one more asterisk, but the website formatting messes it up
  196.  
  197. Solution:
  198. Download Synaptic and run apt-get update
  199.  
  200. sudo apt-get update
  201. sudo apt-get install synaptic
  202. Run synaptic:
  203.  
  204. sudo synaptic
  205. Select Search
  206.  
  207. Type: universe
  208.  
  209. Under all select: universe
  210.  
  211. Scroll to the bottom and select all packages with 'lib' in it.
  212.  
  213. <pic>
  214.  
  215. Hit apply and wait, process generally takes a bit.
  216.  
  217. Reboot and retry step.
  218.  
  219. TX Power Not Changing/Iw Reg Not Changing.
  220. Arises: When your adapters location has been hard coded.
  221.  
  222. Solution:
  223.  
  224. Type:
  225.  
  226. sudo iw reg get
  227. What ever country code pops up go back into the db.txt and change the txpower max similar to how it was done to BO (Bolivia)
  228.  
  229. ---------------------------------------------------------------
  230.  
  231. Sources:
  232. All articles and post that helped me create this guide.
  233.  
  234. Old TX Power post by Eight Four One
  235.  
  236. Post by P4nT4N30
  237.  
  238. Post by Prag
  239.  
  240. Reddit post helping with Troubleshooting
  241.  
  242. Related
  243. 50 Comments
  244. 2Cameron Glass
  245. CAMERON GLASS
  246. 2 YEARS AGO
  247. Quite an excellent tutorial.
  248.  
  249. REPLY
  250. 1Singularity
  251. SINGULARITY
  252. 2 YEARS AGO
  253. Thank you :) took me a while
  254.  
  255. REPLY
  256. 2Washu Washu
  257. WASHU WASHU
  258. 2 YEARS AGO
  259. Very comprehensive guide, will definitely be referring back to this. Thank you.
  260. Cheers,
  261. Washu
  262.  
  263. REPLY
  264. 1Jack Sea
  265. JACK SEA
  266. 2 YEARS AGO
  267. Why exactly is it illegal to increase your wifi strength..
  268.  
  269. REPLY
  270. 1Singularity
  271. SINGULARITY
  272. 2 YEARS AGO - EDITED 2 YEARS AGO
  273. Well, the US's laws say your not allowed to exceed 20 dBm (20 Tx Power). My guess (which could be completely wrong) is that these laws are in place to keep networks from overpowering each other. Mostly for malicious reasons, which is why most people are looking to up their TX Power. It doesn't stop many people from doing it though. I imagine it would be pretty hard to get caught unless you start doing it in public areas or try to crack the wrong people. Ill look more into it later.
  274.  
  275. Update:
  276.  
  277. For anyone curious, I also thought it was notable that it can be a health hazard having your TX Power so high for a lengthy amount of time close to your body. (Just dont be on top of it basically.)
  278.  
  279. REPLY
  280. 1Florian Kaffenberger
  281. FLORIAN KAFFENBERGER
  282. 2 YEARS AGO
  283. I use the ALFA AWUS036NHA with the German: GE-AR9271 Chipset
  284.  
  285. here are my outputs:
  286.  
  287. uZer@Qu4ntum:~$ sudo ifconfig wlan0 down
  288. uZer@Qu4ntum:~$ sudo iw reg set BO
  289. uZer@Qu4ntum:~$ sudo iwconfig wlan0 txpower 30
  290. uZer@Qu4ntum:~$ sudo ifconfig wlan0 up
  291. uZer@Qu4ntum:~$ sudo iwconfig
  292. eth0 no wireless extensions.
  293.  
  294. wlan0 IEEE 802.11bgn ESSID:off/any
  295. Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
  296. Retry short limit:7 RTS thr:off Fragment thr:off
  297. Encryption key:off
  298. Power Management:off
  299.  
  300. lo no wireless extensions.
  301.  
  302. and the output of db.txt for Germany (BO was set to 33 dbm too)
  303.  
  304. # Data from "Frequenznutzungsplan" (as published in April 2008), downloaded from
  305.  
  306. #
  307.  
  308. # For the 5GHz range also see
  309.  
  310. # http://www.bundesnetzagentur.de/cae/servlet/contentblob/38216/publicationFile/6579/WLAN5GHzVfg7_2010_28042010pdf.pdf
  311.  
  312. # The values have been reduced by a factor of 2 (3db) for non TPC devices
  313. # (in other words: devices with TPC can use twice the tx power of this table).
  314. # Note that the docs do not require TPC for 5150--5250; the reduction to
  315. # 100mW thus is not strictly required -- however the conservative 100mW
  316. # limit is used here as the non-interference with radar and satellite
  317. # apps relies on the attenuation by the building walls only in the
  318. # absence of DFS; the neighbour countries have 100mW limit here as well.
  319.  
  320. country DE: DFS-ETSI
  321. # entries 279004 and 280006
  322. (2400 - 2483.5 @ 40), (1000 mW)< changed from 100 to 1000 dbm
  323. # entry 303005
  324. (5150 - 5250 @ 80), (1000 mW), NO-OUTDOOR, AUTO-BW
  325. # entries 304002 and 305002
  326. (5250 - 5350 @ 80), (1000 mW), NO-OUTDOOR, DFS, AUTO-BW
  327. # entries 308002, 309001 and 310003
  328. (5470 - 5725 @ 160), (500 mW), DFS
  329. # 60 GHz band channels 1-4, ref: Etsi En 302 567
  330. (57000 - 66000 @ 2160), (40)
  331.  
  332. i have no idea what i have to do hope anyone could help me
  333.  
  334. thanks so much !
  335.  
  336. REPLY
  337. 1Singularity
  338. SINGULARITY
  339. 2 YEARS AGO
  340. Sorry for late reply.
  341.  
  342. After typing this:
  343. uZer@Qu4ntum:~$ sudo ifconfig wlan0 down
  344. uZer@Qu4ntum:~$ sudo iw reg set BO
  345. uZer@Qu4ntum:~$ sudo iwconfig wlan0 txpower 30
  346. uZer@Qu4ntum:~$ sudo ifconfig wlan0 up
  347. uZer@Qu4ntum:~$ sudo iwconfig
  348.  
  349. type:
  350.  
  351. sudo iw reg get
  352.  
  353. Tell me what it puts out. Thanks.
  354.  
  355. REPLY
  356. 1Florian Kaffenberger
  357. FLORIAN KAFFENBERGER
  358. 2 YEARS AGO
  359. i have done this tutorial but with no success
  360.  
  361. REPLY
  362. 1Spanky McBonerson
  363. SPANKY MCBONERSON
  364. 2 YEARS AGO - EDITED 2 YEARS AGO
  365. anybody know how to get this to work with Kali 2016.1 Rolling?
  366. i get this error:
  367. root@localhost:~/Desktop/crda-3.18# make
  368. GEN keys-gcrypt.c
  369.  
  370. Trusted pubkeys: pubkeys/linville.key.pub.pem pubkeys/root.key.pub.pem pubkeys/benh@debian.org.key.pub.pem pubkeys/sforshee.key.pub.pem
  371.  
  372. CC libreg.so
  373. reglib.c:28:20: fatal error: gcrypt.h: No such file or directory
  374. compilation terminated.
  375. Makefile:118: recipe for target 'libreg.so' failed
  376. make: * libreg.so Error 1
  377.  
  378. REPLY
  379. 2Singularity
  380. SINGULARITY
  381. 2 YEARS AGO
  382. Very sorry for my late reply, I have been very busy. Did you ever find a fix?
  383.  
  384. I found This.
  385.  
  386. Might be worth checking it out but from what I saw, you need to run these commands:
  387.  
  388. apt-get install libgcrypt11-dev
  389. debuild -i -uc -us -b
  390.  
  391. REPLY
  392. 1Alejandro Jimenez Gutierrez
  393. ALEJANDRO JIMENEZ GUTIERREZ
  394. 1 YEAR AGO
  395. To solve it I used your first command and I got the problem mentioned below which was actually solved with the solution provided below by another user
  396.  
  397. REPLY
  398. 1Green Aura
  399. GREEN AURA
  400. 1 YEAR AGO
  401. Great in depth tutorial, unfortunately was unsuccessful on my system. However changing the regulatory options which are packed inside the driver packages successfully allowed a txpower increase of over 20dBm on my system.
  402.  
  403. REPLY
  404. 1Lukas Smith
  405. LUKAS SMITH
  406. 1 YEAR AGO
  407. Hi, could you elaborate a bit on your solution? I have the same problem. Thanks in advances.
  408.  
  409. REPLY
  410. 6Carl Eduard
  411. CARL EDUARD
  412. 1 YEAR AGO - EDITED 1 YEAR AGO
  413. I cant make CRDA in Kali 2016.2
  414.  
  415. sudo make
  416. LD crda
  417. .//libreg.so: file not recognized: File format not recognized
  418. collect2: error: ld returned 1 exit status
  419. Makefile:138: recipe for target 'crda' failed
  420. make: ** crda Error 1
  421.  
  422. REPLY
  423. 5Sven van den Berg
  424. SVEN VAN DEN BERG
  425. 1 YEAR AGO
  426. I have this same error, Do some one know how to fix this ?
  427.  
  428. REPLY
  429. 2Doesn't Matter
  430. DOESN'T MATTER
  431. 1 YEAR AGO - EDITED 1 YEAR AGO
  432. I had the exact same error. My solution:
  433.  
  434. Go to the directory:
  435. cd ~/Desktop/crda-3.18
  436. Edit the file:
  437. nano Makefile
  438. Press CTRL + W (search for a string) and type:
  439. -Werror
  440. Simply remove to switch -Werror and save the file:
  441. Press CTRL + O and then hit enter
  442. Press CTRL + X to leave the editor
  443. Now we need to enter:
  444. make clean
  445. And then:
  446. make
  447.  
  448. We have told the compiler to stop treating warnings as errors.
  449. This may fix this issue.
  450.  
  451. REPLY
  452. 1Owen Lenegan
  453. OWEN LENEGAN
  454. 10 MONTHS AGO
  455. I love you.
  456.  
  457. REPLY
  458. 2James Doge
  459. JAMES DOGE
  460. 1 YEAR AGO
  461. I have the same error too someone help please
  462.  
  463. REPLY
  464. 2tom kee
  465. TOM KEE
  466. 1 YEAR AGO
  467. same error :( Pls help
  468.  
  469. REPLY
  470. 2Barrow
  471. BARROW
  472. 1 YEAR AGO
  473. What is the error?
  474.  
  475. REPLY
  476. 1Cristian Tozzi
  477. CRISTIAN TOZZI
  478. 1 YEAR AGO
  479. LD crda .//libreg.so: file not recognized: File format not recognized collect2: error: ld returned 1 exit status Makefile:136: recipe for target 'crda' failed make: ** crda Error 1
  480.  
  481. this is my output when i use make in crda directory...
  482.  
  483. REPLY
  484. 1Thomas Kellermann
  485. THOMAS KELLERMANN
  486. 1 YEAR AGO
  487. root@kali:~/Desktop/crda-3.18# make
  488. GEN keys-gcrypt.c
  489.  
  490. Trusted pubkeys: pubkeys/linville.key.pub.pem pubkeys/root.key.pub.pem pubkeys/benh@debian.org.key.pub.pem pubkeys/sforshee.key.pub.pem
  491.  
  492. CC libreg.so
  493. keys-gcrypt.c:176:32: error: 'keys' defined but not used -Werror=unused-const-variable=
  494. static const struct key_params keys = {
  495. ^~~~
  496. cc1: all warnings being treated as errors
  497. Makefile:118: recipe for target 'libreg.so' failed
  498. make: ** libreg.so Error 1
  499.  
  500. REPLY
  501. 1Akshay Rijhwani
  502. AKSHAY RIJHWANI
  503. 1 YEAR AGO - EDITED 1 YEAR AGO
  504. I am getting this error when I run 'sudo make'
  505.  
  506. LD crda
  507. .//libreg.so: file not recognized: File format not recognized
  508. collect2: error: ld returned 1 exit status
  509. Makefile:137: recipe for target 'crda' failed
  510. make: ** crda Error 1
  511.  
  512. Please help!
  513.  
  514. REPLY
  515. 1Alejandro Jimenez Gutierrez
  516. ALEJANDRO JIMENEZ GUTIERREZ
  517. 1 YEAR AGO
  518. The solution is above
  519.  
  520. Go to the directory:
  521. cd ~/Desktop/crda-3.18
  522. Edit the file:
  523. nano Makefile
  524. Press CTRL + W (search for a string) and type:
  525. -Werror
  526. Simply remove to switch -Werror and save the file:
  527. Press CTRL + O and then hit enter
  528. Press CTRL + X to leave the editor
  529. Now we need to enter:
  530. make clean
  531. And then:
  532. make
  533.  
  534. REPLY
  535. 1Alejandro Jimenez Gutierrez
  536. ALEJANDRO JIMENEZ GUTIERREZ
  537. 1 YEAR AGO
  538. Hi people, I cannot manage to increase TX Power to 30
  539. I have done all the steps succesfully but when I do "iw reg set BO" and bring the interface up the change is not done.
  540.  
  541. When I do "iw reg get" I am still in the global one, so I went to the troubleshooting and saw that I should change the db.txt again. Here is my doubt after changing it, do I have to generate a new .bin, update the CRDA and copy the PEMS? Or just changing the db.txt should work?
  542.  
  543. And when changing the db.txt in the global part, do I only need to change the 2402-2472 to 30, or should I change everything to 30?
  544.  
  545. Many thanks buddies!
  546. (Pd: My Network Card is Alfa Network AWUS036H)
  547.  
  548. REPLY
  549. 1Alejandro Jimenez Gutierrez
  550. ALEJANDRO JIMENEZ GUTIERREZ
  551. 1 YEAR AGO
  552. Sorry guys I just figured it out, just remake the whole process from scratch and just in case, I edited both BO and 00 to 30. In any case I dont know why but now I was able to switch to BO what I couldnt before(stuck in 00). After switchin to BO I automatically switched to 30 so I didnt have to run the "iwconfig wlan1 txpower 30" command.
  553.  
  554. So I guess it's all cool now!
  555.  
  556. REPLY
  557. 1Dz
  558. DZ
  559. 1 YEAR AGO - EDITED 1 YEAR AGO
  560. Everything went accordingly now I'm stuck in troubleshoot section. When I do the step to run synaptic manager to make lib changes
  561.  
  562. the apply is not clickable. Please help
  563.  
  564. REPLY
  565. 1jonas hofer
  566. JONAS HOFER
  567. 11 MONTHS AGO
  568. Everything went beautifully except for last step. I got this error:
  569.  
  570. root@kali:~/Desktop/crda-3.18# make
  571. GEN keys-gcrypt.c
  572.  
  573. Trusted pubkeys: pubkeys/linville.key.pub.pem pubkeys/root.key.pub.pem pubkeys/benh@debian.org.key.pub.pem pubkeys/sforshee.key.pub.pem
  574.  
  575. CC libreg.so
  576. keys-gcrypt.c:176:32: warning: 'keys' defined but not used -Wunused-const-variable=
  577. static const struct key_params keys = {
  578. ^~~~
  579. CC crda.o
  580. LD crda
  581. CC intersect.o
  582. LD intersect
  583. CC regdbdump.o
  584. LD regdbdump
  585. CC db2rd.o
  586. LD db2rd
  587. CC optimize.o
  588. LD optimize
  589. CHK
  590. Usage: ./regdbdump <regulatory-binary-file>
  591. Makefile:157: recipe for target 'verify' failed
  592. make: ** verify Error 234
  593.  
  594. Can you help me out please?
  595.  
  596. REPLY
  597. 2jonas hofer
  598. JONAS HOFER
  599. 11 MONTHS AGO
  600. So i figured out what i did wrong. In Makefile in crda-3.18 the third line of code should be: REG_BIN?=/lib/crda/regulatory.bin
  601.  
  602. instead of:
  603. REGBIN?=/lib/crda/regulatory.bin
  604.  
  605. REPLY
  606. 1Owen Lenegan
  607. OWEN LENEGAN
  608. 11 MONTHS AGO
  609. Very good, thank you for sharing! Well, certainly worked like a charm on my very 'old school' NetGear WG111v3 (Realtek RTL8187B chipset), which I currently have cranked up to 33dBm (originally set to 20dBm).
  610.  
  611.  
  612. Unfortunately, cranking up the Tx-P by +13dBm made very little difference to AP signal strengths, beacon nos. or deauth/injection effectiveness. But that may be because this old bugger (the dongle, not me) doesn't sport an external aerial.
  613.  
  614. I'm curious, though, how high could we (theoretically, of course) crank the Tx-P on these things? Would it make a meaningful difference? Has anyone gone beyond 33dBm? Is there a built-in hardware limit? If anyone knows or has mucked around with this I'd be interested to hear from you.
  615.  
  616. REPLY
  617. 1budugz@local-p
  618. BUDUGZ@LOCAL-P
  619. 10 MONTHS AGO
  620. /bin/sh: 1: pkg-config: not found
  621. /bin/sh: 1: pkg-config: not found
  622. /bin/sh: 1: pkg-config: not found
  623. /bin/sh: 1: pkg-config: not found
  624. Makefile:76: Cannot find development files for any supported version of libnl. Stop.
  625.  
  626. you don't have to install synaptic and install everything under universe search that has *.lib in it
  627. just install pkg-config
  628. apt-get install pkg-config
  629.  
  630. REPLY
  631. 1harry pale
  632. HARRY PALE
  633. 9 MONTHS AGO
  634. Hello, I followed this tutorial for my Alfa AWUS036NHR (RTL8188RU) but I can't increase or decrease txpower, it is fixed at 20dBm (latest version of kali).
  635.  
  636. What can I do?
  637.  
  638. Thank you
  639.  
  640. REPLY
  641. 1Owen Lenegan
  642. OWEN LENEGAN
  643. 9 MONTHS AGO
  644. Hey Harry, if everything 'worked' in making/installing the new CRDA dB and you reg set the TX Power to BO (check with iw reg get) but still find yourself stuck on 20dBM, then try the process again, this time ensuring you increase the TX to, say, 30dBm, for (1) the global region (top of the list) and (2) your country region. I found that my WiFi reg would be set back to either global or AU (I'm Aussie) by some SYS settings and other apps so I just went nuts and replaced the 00 (global) and AU (my country) with 33dBm. I also replaced like BO with 35dBm, UK with 36, US with 37 etc etc. So I now have a virtual TX Power 'dial' which I can turn up and down with 'is reg set XX', depending on how much cancer I want to give my cat. Also note that some cheap China WiFi dongles just don't exceed 20dBm no matter what. 2/3 of my WiFi cards work with this trick but one super cheap Chinese one I've got won't cooperate. Start with ensuring TX is 30 for 00 global and your home region and see if that works first. Good luck mate!
  645.  
  646. REPLY
  647. 1harry pale
  648. HARRY PALE
  649. 8 MONTHS AGO
  650. Hi, thank you for reply.
  651.  
  652. I have already tried more than once what you said, but I can't change the value.
  653. The weird thing is that I cannot decrease it (i.e. to 18dBm or to 15dBm) too.
  654.  
  655. Linux and Windows drivers of this antenna are really bad.
  656.  
  657. The only problem I had in "make", is this:
  658.  
  659. root@kali:~/Desktop/crda-3.18# make
  660. GEN keys-gcrypt.c
  661.  
  662. Trusted pubkeys: pubkeys/linville.key.pub.pem pubkeys/root.key.pub.pem pubkeys/benh@debian.org.key.pub.pem pubkeys/sforshee.key.pub.pem
  663.  
  664. CC libreg.so
  665. keys-gcrypt.c:176:32: error: 'keys' defined but not used -Werror=unused-const-variable=
  666. static const struct key_params keys = {
  667. ^~~~
  668. cc1: all warnings being treated as errors
  669. Makefile:118: recipe for target 'libreg.so' failed
  670. make: ** libreg.so Error 1
  671.  
  672. which I solved adding
  673.  
  674. -Wno-error -Wno-unused-const-variable
  675.  
  676. in the Makefile.
  677.  
  678. Thank you anyway for your help.
  679.  
  680. REPLY
  681. 1mr void
  682. MR VOID
  683. 2 MONTHS AGO - EDITED LAST MONTH
  684. It was needed to delete not just -Werror from Makefile, but -Werror -pedantic. And now, all is okay.
  685.  
  686. REPLY
  687. 1Nimrod quimbus
  688. NIMROD QUIMBUS
  689. 3 WEEKS AGO
  690. What did you do?
  691. Thanks!
  692.  
  693. REPLY
  694. 1Lars B
  695. LARS B
  696. 8 MONTHS AGO - EDITED 8 MONTHS AGO
  697. Hey Harry,
  698.  
  699. as stupid as it sounds, did you put down your <wlan0> interface with ifconfig <wlan0> down? :)
  700.  
  701. I had all the errors above with libnl (install pkg-config ) and "-Werror" (removed it from the Makefile and entered "make clean" "make" and "make install" again).
  702.  
  703. Everything worked, except i could not change the txpower . Even the "iw reg get" showed Bolivia (BO) with the correct values i entered in the db.txt file.
  704.  
  705. The simple solution was to bring down the interface first before changing the tx power (which makes sense if you think about it :) ).
  706.  
  707. Machine is a VM on a mac with the bleeding edge kali , updated a few minutes ago, wireless card is an Alfa AWUS036H with no hardcoded region.
  708.  
  709. KR
  710.  
  711. REPLY
  712. 1harry pale
  713. HARRY PALE
  714. 8 MONTHS AGO - EDITED 8 MONTHS AGO
  715. Hi, I already tried with no success, but I found that I can get 30dBm without this mod on Ubuntu 14.04, just with iw reg set BO.
  716.  
  717. Alfa AWUS036H and AWUS036NHR have different chipsets (RTL8187L and RTL8188RU).. I had an AWUS036H, which was better, but a lightning has burned it :(
  718.  
  719. Thank you for helping
  720.  
  721. REPLY
  722. 1Andrew Damayer
  723. ANDREW DAMAYER
  724. 7 MONTHS AGO
  725. so I got it all working, but figured it would be okay to set the BO to 35 and then set the interface to 33, but I can't get it back down to 33. Tried redoing the steps to no avail. any help?
  726.  
  727. REPLY
  728. 1Mogerz Hard
  729. MOGERZ HARD
  730. 6 MONTHS AGO
  731. _LD crda
  732. .//libreg.so: file not recognized: Berkas format tidak dikenal
  733. collect2: error: ld returned 1 exit status
  734. Makefile:137: recipe for target 'crda' failed
  735. make: ** crda Error 1_
  736.  
  737. #help mi?
  738.  
  739. REPLY
  740. 1Mogerz Hard
  741. MOGERZ HARD
  742. 6 MONTHS AGO
  743. GEN keys-gcrypt.c
  744.  
  745. Trusted pubkeys: pubkeys/linville.key.pub.pem pubkeys/root.key.pub.pem pubkeys/benh@debian.org.key.pub.pem pubkeys/sforshee.key.pub.pem
  746.  
  747. CC libreg.so
  748. keys-gcrypt.c:176:32: warning: 'keys' defined but not used -Wunused-const-variable=
  749. static const struct key_params keys = {
  750. ^~~~
  751. CC crda.o
  752. LD crda
  753. CC intersect.o
  754. LD intersect
  755. CC regdbdump.o
  756. LD regdbdump
  757. CC db2rd.o
  758. LD db2rd
  759. CC optimize.o
  760. LD optimize
  761. CHK
  762. Usage: ./regdbdump <regulatory-binary-file>
  763. Makefile:157: recipe for target 'verify' failed
  764. make: ** verify Error 234
  765.  
  766. Please help!
  767.  
  768. REPLY
  769. 1Kraka Doros
  770. KRAKA DOROS
  771. 4 MONTHS AGO
  772. Hary Pale told that solved his problem by adding
  773. -Wno-error -Wno-unused-const-variable
  774. in the Makefile. Where exactly he add it, in Makefile ?
  775. My problem is that after "make" in crda-3.18 directory i receive (three last lines)
  776. M2Crypto.RSA.RSAError: no start line
  777. Makefile:113: recipe for target 'keys-gcrypt.c' failed
  778. make: ** keys-gcrypt.c Error 1
  779. Any help ??
  780.  
  781. REPLY
  782. 1Kraka Doros
  783. KRAKA DOROS
  784. 4 MONTHS AGO - EDITED 4 MONTHS AGO
  785. The hole "reply" i received, after "make" is :
  786. root@kali:~/Desktop/crda-3.18# make
  787. GEN keys-gcrypt.c
  788.  
  789. Trusted pubkeys: pubkeys/root.key.pub.pem pubkeys/root.x509.pem pubkeys/sforshee.x509.pem pubkeys/sforshee.key.pub.pem pubkeys/benh@debian.org.key.pub.pem pubkeys/linville.key.pub.pem
  790.  
  791. Traceback (most recent call last):
  792. File "./utils/key2pub.py", line 149, in <module>
  793. key = RSA.load_key(f)
  794. File "/usr/lib/python2.7/dist-packages/M2Crypto/RSA.py", line 376, in load_key
  795. return loadkeybio(bio, callback)
  796. File "/usr/lib/python2.7/dist-packages/M2Crypto/RSA.py", line 395, in loadkeybio
  797. rsa_error()
  798. File "/usr/lib/python2.7/dist-packages/M2Crypto/RSA.py", line 330, in rsa_error
  799. raise RSAError(m2.errreasonerrorstring(m2.errget_error()))
  800. M2Crypto.RSA.RSAError: no start line
  801. Makefile:113: recipe for target 'keys-gcrypt.c' failed
  802. make: ** keys-gcrypt.c Error 1
  803.  
  804. REPLY
  805. 1V M
  806. V M
  807. 3 MONTHS AGO
  808. Hi, how did you get around this error? Seems I have it as well.
  809.  
  810. Trusted pubkeys: pubkeys/root.key.pub.pem pubkeys/root.x509.pem pubkeys/sforshee.x509.pem pubkeys/sforshee.key.pub.pem pubkeys/benh@debian.org.key.pub.pem pubkeys/linville.key.pub.pem
  811.  
  812. Traceback (most recent call last):
  813. File "./utils/key2pub.py", line 149, in <module>
  814. key = RSA.load_key(f)
  815. File "/usr/lib/python2.7/dist-packages/M2Crypto/RSA.py", line 376, in load_key
  816. return loadkeybio(bio, callback)
  817. File "/usr/lib/python2.7/dist-packages/M2Crypto/RSA.py", line 395, in loadkeybio
  818. rsa_error()
  819. File "/usr/lib/python2.7/dist-packages/M2Crypto/RSA.py", line 330, in rsa_error
  820. raise RSAError(m2.errreasonerrorstring(m2.errget_error()))
  821. M2Crypto.RSA.RSAError: no start line
  822. Makefile:113: recipe for target 'keys-gcrypt.c' failed
  823. make: * keys-gcrypt.c Error 1
  824.  
  825. REPLY
  826. 1Zul Oth
  827. ZUL OTH
  828. 3 MONTHS AGO
  829. I have the same error and found a link to this:
  830.  
  831. https://unix.stackexchange.com/questions/413774/crda-make-error
  832.  
  833. yet I have no idea what build requirements solved it. Maybe someone can test and clarify?
  834.  
  835. REPLY
  836. 1Cristian Guerra
  837. CRISTIAN GUERRA
  838. 2 WEEKS AGO
  839. Had the same error here. I'm pretty sure I used this guide successfully in 2017, but for the life of me it's not working on Kali 2018.1
  840.  
  841. Then I found an article, which really helped: miloserdov.org/?p=337
  842. Long story short, run these commands (after updating apt-get and installing all the packages from this guide):
  843.  
  844. git clone git://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git
  845. cd wireless-regdb/
  846. gedit db.txt
  847. Modify country BO to 30dbi instead of 20, then save
  848. sudo make
  849. sudo mv /lib/crda/regulatory.bin /lib/crda/regulatory.bin.bak (make backup copy of old regulations)
  850. sudo cp regulatory.bin /lib/crda/regulatory.bin
  851. sudo cp $USER.key.pub.pem /lib/crda/pubkeys/ (substitute your username to $USER, e.g. root.key.pub.pem)
  852. Done!
  853. Now go with the usual commands:
  854.  
  855. sudo iw reg set BO
  856. sudo iwconfig <your adapter, in my case wlan1> down
  857. sudo iwconfig <your adapter> txpower 30
  858. sudo iwconfig <your adapter, in my case wlan1> up
  859. There you go. Enjoy!
  860.  
  861. REPLY
  862. 1Kraka Doros
  863. KRAKA DOROS
  864. 4 MONTHS AGO - EDITED 4 MONTHS AGO
  865. And something very important !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  866.  
  867. Limits of each country is something complete different from real safe limits. According to many and very serious scientists, the safe for health limit is ZERO microWatts per m2 (per square meters). But because most people cannot leave without wifi, scientists put a limit to 0.1 microWatts per m2, for sensitive groups to 3 microWatts per m2 for children, to 6 microWatts per m2 for adults to 10 microWatts per m2 as an upper limit. What does these means? A wifi adaptor with antenna TX Power 20 dbm gives a power of 100 milliWatts. Around this antenna and in a radius of 1 meter, the power will be 7.95 milliWatts per m2 (correct me if i am wrong) which is equal to 7950 microWatts per m2. This is 79400% up from the upper limit of safe power, around an antenna. Because the power change according to the reverse of square of distance, it means that the distance is very important in order not to receive bad effects from radiation. If we move another meter from the antenna (2 meters) then the power will be 1980 microWatts per m2, thus we have 75.09% reduction, and if we move in 3 meters the power will be 884 microWatts per m2. But to achieve the limit of 10 microWatts per m2, we must go far from the antenna for many meters (~20). Now, if we change the TX Power to 23dbm (from 20dbm), we actually set a new power of double the one from 20dbm, that will be 200milliWatts. I saw you, before, that 20 dbm, is already by itself a very hight limit. Think, what is happening with 23 dbm, which actually double the power to 200mWatts from 100 milliwatts. I do not talk for a TX Power of 27dbm or 30dbm or more. It is for sure that the cell's membranes could not exchange K and Na ions, and will run out of energy and then...buy buy. (except possible damages to DNA).
  868.  
  869. I do not say, not to use these devices because 1) i bought one, although i knew about the health harmful emissions of theme 2) there are people that work in the wifi industry and it would harm their wallets. I am just saying that you can take a distance from antennas, or use an aluminum foil between antenna and your body or use it for less hours or minutes. If you are in 27dbm or 30 or more, go out of room or use it for a very short time. I know there are people who use these, for many years and they are healthy now, but this kind of disease comes drop by drop. It is additive. So if you decide to use it, use it very carefully.
  870.  
  871. REPLY
  872. 1mr void
  873. MR VOID
  874. 2 MONTHS AGO - EDITED 2 MONTHS AGO
  875. Why so much timewaste with synaptic?
  876. apt-cache search find packages very well
  877.  
  878. REPLY
  879. 1Manuel Perez
  880. MANUEL PEREZ
  881. 2 WEEKS AGO
  882. My situation is so weird.
  883. I'm using Linux 4.14.0-kali3-amd64 xhci-hcd
  884. (USB)Wireless card AWSUS036NH
  885. Drivers rt2800usb
  886. (INERNAL) Wireless 7265
  887. Drivers iwlwifi
  888.  
  889. When I first created the bootable USB Im using to run this Kali, I was able to change the reg Domain to BO but was not able to boost the tx power (but neither I get the message of Invalid argument)
  890.  
  891. After tweaking for a bit now I'm not able to change the reg domain.
  892.  
  893. Decided to follow this tutorial and I apply everything for country 00 (global) but when I do reg get I'm still stuck on the same regulation default values (stuck in 20)
  894.  
  895. I'm able to change the txpower of my internal card to 22 txpower but no more, while in the external one 20 is the maximum.
  896.  
  897. I'm quite lost to be honest never had such a problem. Is taking me days and I feel like I'm omiting something big. Let me know if any of you guys experienced the same.
  898.  
  899. Thanks.
  900.  
  901. REPLY
  902. 1Manuel Perez
  903. MANUEL PEREZ
  904. 2 WEEKS AGO
  905. All problems apparently solved. I wanted to post my solution but apparently the website is not letting me such a long comment. Let me know if someone gets stuck I will get in touch with him.
  906.  
  907. Thanks
  908.  
  909. REPLY
  910. Share Your Thoughts
  911.  
  912. YOU
  913. LOGIN TO COMMENT
  914. Click to share your thoughts
  915. HOT LATEST
  916.  
  917. HOW TO
  918. Hack SAML Single Sign-on with Burp Suite
  919.  
  920. HOW TO
  921. Use Maltego to Target Company Email Addresses That May Be Vulnerable from Third-Party Breaches
  922.  
  923. HACKING WINDOWS 10
  924. How to Intercept & Decrypt Windows Passwords on a Local Network
  925.  
  926. HOW TO
  927. 4 Ways to Crack a Facebook Password & How to Protect Yourself from Them
  928.  
  929. HACKING MACOS
  930. How to Configure a Backdoor on Anyone's MacBook
  931.  
  932. HOW TO
  933. Get Unlimited Free Trials Using a "Real" Fake Credit Card Number
  934.  
  935. HOW TO HACK WI-FI
  936. Get Anyone's Wi-Fi Password Without Cracking Using Wifiphisher
  937.  
  938. HACK LIKE A PRO
  939. How to Hack Facebook (Facebook Password Extractor)
  940.  
  941. HOW TO
  942. Build a Beginner Hacking Kit with the Raspberry Pi 3 Model B+
  943.  
  944. HOW TO
  945. Hack WPA & WPA2 Wi-Fi Passwords with a Pixie-Dust Attack Using Airgeddon
  946.  
  947. HOW TO
  948. Crack Any Master Combination Lock in 8 Tries or Less Using This Calculator
  949.  
  950. HACK LIKE A PRO
  951. How to Secretly Hack Into, Switch On, & Watch Anyone's Webcam Remotely
  952.  
  953. HOW TO
  954. Buy the Best Wireless Network Adapter for Wi-Fi Hacking in 2018
  955.  
  956. HOW TO
  957. Hack a Windows 7/8/10 Admin Account Password with Windows Magnifier
  958.  
  959. HOW TO
  960. Crack Wi-Fi Passwords with Your Android Phone and Get Free Internet!
  961.  
  962. HOW TO
  963. Successfully Hack a Website in 2016!
  964.  
  965. HOW TO HACK WI-FI
  966. Cracking WPA2-PSK Passwords Using Aircrack-Ng
  967.  
  968. HOW TO
  969. Install Kali Live on a USB Drive (With Persistence, Optional)
  970.  
  971. HOW TO
  972. The Essential Skills to Becoming a Master Hacker
  973.  
  974. HOW TO
  975. Hack Windows 7 (Become Admin)
  976. ALL FEATURES
  977. © 2018 WonderHowTo, Inc.
  978. WonderHowTo.com About Us Privacy Policy Terms of Use
Add Comment
Please, Sign In to add comment