Extracting Firmware from Routers

Firmware-mod-kit - Documentation.wiki -  https://code.google.com/archive/p/firmware-mod-kit/wikis/Documentation.wiki

Why? Because... this here ( https://sapinski.com/2016/02/13/wifi-pineapple-firmware-for-gl-inet-gl-ar150/ ).

1 Pi, 2 WiFi

For those requiring multiples of WiFi adapters recognized and functional on their Raspberry Pi- A large variety of trouble shooting/ general setup(for those lucky types who things "just work" for them...)    and further trouble shooting for the others where things just can't, aren't, may never be as simple as plug and play- it is more; play, plug, play, un plug, reset, plug, play play play, plug, reset,restart computer since all resources have been tied up in all the tabs/ windows open for a solution so that at one weird odd moment down the road the thing might just work and you may have no idea what even was the fixx since it just did,,,,  Or you just give up having done enough cursing to no avail- questioning the saving that are seen when considering DIY or Buy?

Sometimes all we need is that 1 forum thread...

...being:
 https://forums.raspberrypi.com/viewtopic.php?t=49283

Solution and Trouble Shooting Issues with 2 WiFi Adapters/ Interfaces  Running at the Same Time

Run dmesg to see kernel messages of hardware when added,,,


whatis dmesg -- dmesg description/ what dmesg is

dmesg -w 

Remove all USB WiFi Dongles/adapters,

do dmesg -c command. (clears buffer)

plug adapter in.

wait...

plug second adapter in.

wait...

use `dmesg >dmesg_log.txt` to write log to a file.

and `cat dmesg_log.txt` to show.


Some of the Many Commands used:

lsusb - connected by USB

ifconfig - hardware info -- be scared if you se r8712u <much troubles, many bad time.

ifconfig -a

uname -a  - hardware, Pi OS

sudo ifdown --force wlan0 - turns wlan off 

sudo ifup --force wlan0 - turns wlan on

or:

 sudo ifdown wlan1 and then sudo ifup wlan1 or even sudo ifdown --force wlan1 and then sudo ifup --force wlan1

What you are looking for:

wlan0, wlan1 etc.. what are these? Take note of description, make/model, IP, MAC, chipset


Edit the file /etc/network/interfaces to look like this adding your own network names and passwords

Look for the below in the last file- should look same same/ similar and will allow the 2 adapters to play together- mind your power consumption where you may require a powered hub, find 1 with 5v, 4amps preferably- also mind USB version...2 or 3? Your devices compatible> Cables? OTG? Hub compatible?: Continue on....

auto lo

iface lo inet loopback

iface eth0 inet dhcp

allow-hotplug wlan0

iface wlan0 inet dhcp

wpa-ssid "Network-0"

wpa-psk "Password-0"

allow-hotplug wlan1

iface wlan1 inet dhcp

wpa-ssid "Network-1"

wpa-psk "Password-1"


Hardware Mentions

Hardware confirmed to work: 

...Edimax EW-7811Un, using rtl8188cus driver, and TP-LINK TL-WN725N V2, using rtl8188eu driver. I have sometimes had 4 of these connected to my Pi at the same time and all working. -- from https://forums.raspberrypi.com/viewtopic.php?p=385707&sid=68d34da69e7472b3a2ffc9b469822e9c#p385707

Primarily use devices that use the 8192cu and 8188eu drivers, Edimax EW-7811Un and TP-Link TL-WN725N V2 but also sometimes use Edimax EW-7622UMn (r8712u driver) and Netgear WNA1100 (Atheros ath9k_htc driver).  -- From https://forums.raspberrypi.com/viewtopic.php?p=459833&sid=68d34da69e7472b3a2ffc9b469822e9c#p459833

Other Considerations

Issues with resolution:

One was powered by the 8192cu module, the other one was a r8712u. Each of them worked fine as long as you connected them separately. At the moment run the two of them together, the wlan1 device would not register,

Solution that Worked

This worked:

The solution was to first suppress the loading of the modules by blacklisting and load them in a specific order later on:

$ sudo vi /etc/modprobe.d/wlan-blacklist.conf

blacklist r8712u

blacklist 8192cu

$ sudo depmod -ae (may have issues here where instead of -ae you may require -E or -F)

$ sudo update-initramfs -u

$ sudo vi /etc/modules

At the end of the file you add your modules in the order that they are supposed to show up (i.e. wlan0 before wlan1, etc.):

# /etc/modules: kernel modules to load at boot time.

#

# This file contains the names of kernel modules that should be loaded

# at boot time, one per line. Lines beginning with "#" are ignored.

# Parameters can be specified after the module name.

snd-bcm2835

8192cu

r8712u

Reboot 


and it worked for this person...

More to add to the above solution:

https://forums.raspberrypi.com/viewtopic.php?p=891662&sid=68d34da69e7472b3a2ffc9b469822e9c#p891662


To have your interfaces/ adapters named with specific interface names - from https://forums.raspberrypi.com/viewtopic.php?p=1302491&sid=4e8b91bc6ed59e0528e5121e58854e45#p1302491


Create a new file in directory /etc/wpa_supplicant/. The new file should be named with interface name i.e

wpa_supplicant-wlan1.conf

- file /etc/wpa_supplicant/wpa_supplicant-wlan0.conf for interface wlan0

- file /etc/wpa_supplicant/wpa_supplicant-wlan1.conf for interface wlan1

- content of wpa_supplicant-wlan0.conf file

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

update_config=1

country=US

network={

ssid="ssid0"

psk="pass0"

}

- content of wpa_supplicant-wlan1.conf file

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

update_config=1

country=US

network={

ssid="ssid1"

psk="pass1"

}

reboot PI and you should have SSID attached to an interface.
Final Comment

If you don't get 2 WiFi adapters to work after all that then... I wish you good luck. But, if you do find a different solution that wasn't found here, yet worked for you, then report back- leave a comment- If it works, then i'll feature your solution also.

Anyone else, if this helped, please do let me know- or maybe you required a bit oif editing of the info above- leave a comment- it will help others.

RTL-SDR-MANY-MUCH-ALL-MORE-EVERYTHING-BEGINNING-END-ALPHA-OMEGA

 



History and the discovery of the RTL-SDR, which started out with a comfortable life as a RTL2832U, or RTL2838- the latter, though mentioned in many components, not truly existing, rather, being named a RTL2832U(might be the reverse...).

In attempts of  demodulating DAB/DAB+/FM a fella named Eric Fry put the above into the mix which further brought us the RTL-SDR

More on the discovery and history of  the RTL-SDR.    


Apps for the RTL-SDR

Many applications and libraries which are using either librtlsdr directly or some part of the gnuradio source which is also considered as gr-osmosdr:

NameTypeAuthorURL
gr-pocsagGRC FlowgraphMarcus Leechhttps://www.cgran.org/browser/projects/gr-pocsag/trunk
multimode RX (try first!)GRC FlowgraphMarcus Leechhttps://www.cgran.org/browser/projects/multimode/trunk
simple_fm_rvcGRC FlowgraphMarcus Leechhttps://www.cgran.org/browser/projects/simple_fm_rcv/trunk
python-librtlsdrPython WrapperDavid Basdenhttps://github.com/dbasden/python-librtlsdr
pyrtlsdrPython WrapperRogerhttps://github.com/roger-/pyrtlsdr
rtlsdr-waterfallPython FFT GUIKyle Keenhttps://github.com/keenerd/rtlsdr-waterfall
Wireless Temp. Sensor RXGnuradio AppKevin Mehallhttps://github.com/kevinmehall/rtlsdr-433m-sensor
QtRadioSDR GUIAndrea Montefusco et al.http://napan.ca/ghpsdr3/index.php/RTL-SDR
gqrxSDR GUIAlexandru Csetehttps://github.com/csete/gqrx
rtl_fmSDR CLIKyle Keenmerged in librtlsdr master
SDR#SDR GUIYoussef Touilhttp://sdrsharp.com/ and Windows Guide or Linux Guide
tetra_demod_fftTrunking RXosmocom teamosmosdr-tetra_demod_fft.py and the HOWTO
airprobeGSM snifferosmocom team et alhttp://git.gnumonks.org/cgi-bin/gitweb.cgi?p=airprobe.git
gr-smartnet (WIP)Trunking RXNick Fosterhttp://www.reddit.com/r/RTLSDR/comments/us3yo/rtlsdr_smartnet/ Notes from the author
gr-air-modesADS-B RXNick Fosterhttps://www.cgran.org/wiki/gr-air-modes call with --rtlsdr option
LinradSDR GUILeif Asbrink (SM5BSZ)http://www.nitehawk.com/sm5bsz/linuxdsp/hware/rtlsdr/rtlsdr.htm" DAGC changes were applied to librtlsdr master
gr-ais (fork)AIS RXNick Foster, Antoine Sirinelli, Christian Gagneraudhttps://github.com/chgans/gr-ais
GNSS-SDRGPS RX (Realtime!)Centre Tecnològic de elecomunicacions de CatalunyaDocumentation and http://www.gnss-sdr.org/
LTE-Cell-ScannerLTE Scanner / TrackerJames Peroulas, Evrytania LLChttp://www.evrytania.com/lte-tools https://github.com/Evrytania/LTE-Cell-Scanner]
LTE-Cell-Scanner OpenCL accelerated (new)LTE Scanner / TrackerJiao Xianjunhttps://github.com/JiaoXianjun/LTE-Cell-Scanner
Simulink-RTL-SDRMATLAB/Simulink wrapperMichael Schwall, Sebastian Koslowski, Communication Engineering Lab (CEL), Karlsruhe Institute of Technology (KIT)http://www.cel.kit.edu/simulink_rtl_sdr.php
gr-scanScannertechmeologyhttp://www.techmeology.co.uk/gr-scan/
kalibrate-rtlcalibration toolJoshua Lackey, Alexander Chemeris, Steve Markgrafhttps://github.com/steve-m/kalibrate-rtl Windows build
pocsag-mrtMultichannel Realtime ]DecoderiZshhttps://github.com/iZsh/pocsag-mrt
adsb#ADS-B RXYoussef Touil, Ian Gilmourhttp://sdrsharp.com/index.php/a-simple-and-cheap-ads-b-receiver-using-rtl-sdr
osmo-gmr-rtlGMR1 RXDimitri Stolnikovhttps://osmocom.org/projects/gmr/wiki/GettingStarted#RTLSDRdongles
rtl_adsbADS-B RXKyle Keencomes with the library
dump1090ADS-B RXSalvatore Sanfilippohttps://github.com/antirez/dump1090
rtl_433Temperature Sensor ReceiverBenjamin Larssonhttps://github.com/merbanan/rtl_433
randioRandom number generatorMichel Pelletierhttps://github.com/michelp/randio
gr-wmbusm-bus (EN 13757-4) RXoWCTejLVlFyNztcBnOohhttps://github.com/oWCTejLVlFyNztcBnOoh/gr-wmbus
ec3kEnergyCount 3000 RXTomaž Šolchttps://github.com/avian2/ec3k
RTLSDR-ScannerRadio ScannerEarToEarOakhttps://github.com/EarToEarOak/RTLSDR-Scanner
simple_raRadio Astronomy AppMarcus Leechhttps://cgran.org/wiki/simple_ra
rtlizerSpectrum analyzerAlexandru Csetehttps://github.com/csete/rtlizer
FS20_decodeFS20 DecoderThomas Frischhttps://github.com/eT0M/rtl_sdr_FS20_decoder
OpenLTELTE ToolkitBen Wojtowiczhttp://sourceforge.net/p/openlte/home/Home/
rtltcpaccessDAB compatibility layerSteve Markgrafhttps://github.com/steve-m/rtltcpaccess
SDR-J"Analog" SDR & DABJan van Katwijkhttp://www.sdr-j.tk
RTLTcpSourcesource for redhawk SDR frameworkMichael Ihderedhawk Docs page RTLTcpSource
gortlsdrGolang wrapperJoseph Poirierhttps://github.com/jpoirier/gortlsdr
gr-rds (fork)RDS + WBFM receiverDimitrios Symeonidis et alhttps://github.com/bastibl/gr-rds
NRF24-BTLE-DecoderDecoder for 2.4 GHz NRF24 & Bluetooh LEOmri IluzCode Blog post
acarsdecACARS decoderThierry Lecontehttp://sourceforge.net/projects/acarsdec/
rtl-sdr-airbandair band reiceiver/ATISWong Man Hanghttps://github.com/microtony/RTLSDR-Airband


More: https://osmocom.org/projects/rtl-sdr/wiki/Rtl-sdr

Now on a Wiki but originally on Reddit a RTL-SDR compatibility list v.2 [work in progress, please help!] - https://www.reddit.com/r/RTLSDR/comments/s6ddo/rtlsdr_compatibility_list_v2_work_in_progress/

Tuner compatibilityhttps://www.reddit.com/r/RTLSDR/wiki/compatibility/




Overlay Cheat Code

 

For the creative types- and not creative types. Depending on the time of year, I can be both, 1 or none.

I see these cool pod casts or streams(what i'm gonna show you may not be the best....this, though you could maybe sneak it in, wouldn't work[smoothly] for anything live since there is a tiny bit of pre set up required) where some animated graphic all of a sudden comes to frame-

Emphasis on content. Maybe a cartoon "BANG" emphasizing an explosive moment.

 Or, a cheesy "Click like & subscribe"
I go off topic here about some YouTube stuff- skip to the next paragraph to maintain on topic...(Wonder what viewers of archived videos will think years down the road when there isn't anything of the sort. Maybe YouTube isn't a thing...remember AOL? Yahoo? barely.... "like & subscribe" What is this prompt that I am constantly told to do?"- off topic, but it'd be an interesting ability if, on the YouTube platform... or others... sections could be labelled and then once labelled, those sections can be interchanged- example; maybe a sponsor doesn't work out and now involved in some controversy...but your video has a 2 minute section promoting them when they were in good standing and a decent sponsor... now you are stuck with this video...otherwise you could just replace that section, or delete it completely by just editing the labelled sections- and say labelled sections are the same label? Then a batched edit could be done)\-

-OK way off topic!\

Anyways... Some kinda graphic/ animation emphasizing the moment.. exaggerating an action. A caption. Some descriptive text. Maybe introducing a guest or setting the scene by having the location written out. Or, framing the scene with an animate graphic.

Turn programs into overlays in Windows with Overlayer  https://sourceforge.net/projects/overlayer/ Official site: https://github.com/PsychedelicShayna/overlayer

A lightweight window management utility to help get the most out of your limited screen area, by (safely) giving you the tools to: add transparency to a window, force a window to be topmost/appear on top of all others, as well as shortcut toggle-able click-through, or "ghost widows", if you like, where all clicks pass right through it as if it weren't there.

For censoring sections of the screen https://sourceforge.net/projects/idrag/


Program Description: Overlay Boxes Application

The Overlay Boxes application is a customizable tool designed to create draggable overlay boxes on your desktop. The program provides a user-friendly interface that allows you to add, move, and remove these boxes easily.


There's software for that. Right? I'm sure there is( leave a comment if you know or use any). I haven't explored any- because, my solution has work well for me- I don't have to. But, 1 that comes to mind is ODB, which you can set up scenes with the graphics within 'em- just updating the visibility of each. 

The way I do it... have graphical overlays- mostly for creating animated text within short video/ gif clips. Nothing fancy- but, hence the title , it is a bit of a cheat code (just calling it that...there is no coding involved). 

How I make overlays(doesn't have to be in this order):

  1. Have a video in which you want to emphasize something within it- 
    1. I want to emphasize an LED is on
  2. Find an animated graphic that falls inline with your idea
    1. I just google whatever that would be followed by "gif"
    2. "red sparkle gif" for example
      1. Adding "transparent or "transparency" works wonders and I highly advise that something with a transparent background be used- makes for better results. Though, you can always use a separate graphics editor to remove things like backgrounds or areas of color.
  3. Two options here with either or viable... 1st option: Save it, making sure it is saved as a gif and not webp, or other file format
    1. You can't convert it after, since there will be no animation in that case...
    2. 2nd option: Save the media URL... as in copy it, into a clipboard, or copy and paste the URL into a text application- anywhere really that you can recall this URL with ease
      1. The 2nd option sometimes doesn't work- the url needs to be that of the media directly/ not of the page the source is on....
  4. On the website SourceForge, locate and download a small application called "Overlay"
    1. https://sourceforge.net/projects/overlayapp/
    2. May require the download of the DotNet Framework...  http://www.microsoft.com/net
  5. Open the Overlay application
  6. Right click
  7. Select the media file you saved/ created... or...
    1. Or.. this is where those 2options above come to play... option 1 we just went over...  
    2. Option 2; revisit the URL you've saved
    3. Where the file name populates once selected, you can also, instead, paste the URL and click next- if the source alows, your file will be stored in a temp file on your computer and displayed as though saved previously and selected.
  8. Right click on the image to bring up the options
    1. These are pretty intuitive so I won't go into them,,,
    2. Any 'white' space around your graphic has a tendency to become transparent once the option to ghost the image is selected and any transparency value under 100%
    3. For the effect I am sharing to work, you want to set your graphic to a transparency value that is still visible and at most 99%
Depending on the ghosting option selected, you may not be able to click on the media to move it/ adjust it... for certain applications a click through feature is a welcome one...
 If you find yourself unable to retrieve your overlay. look no further than your Task Tray which will have the Overlay application logo for each overlay you have- right click on the icon which will give you the same menu options as if you clicked on the media directly before. Un ghost/ um pin your overlay to adjust it.

Kinda cumbersome but it does the trick and serves its purpose... This is a fairly long set of directions... but it isn't that much really- I just wanted to be thorough.

Another use case for this would be for the need of censoring sensitive content/ areas of your screen.

Oh, yeah, this, I am doing to create little short clips of video or gifs. So, I am using a screen recorder like ShareX or Screen2Gif- just like the gif in this(and many/ most of my other posts)

    

Simple Effective Screen Recorder to Create GIFS

 
Simple, effective... record your screen to create impactful GIFs. Once recorded, also a very powerful GIF editor- Use it for independent editing of any GIFs you may already have...



Screen2Gif - https://www.screentogif.com/

Screen2Gif On GitHubhttps://github.com/NickeManarin/ScreenToGif
Screen2Gif on PortableFreeware.comhttps://www.portablefreeware.com/index.php?id=2895 - was a broken link when searched...
Screen2Gif on Softpedia - https://www.softpedia.com/get/Multimedia/Graphic/Graphic-Others/Screen-to-Gif.shtml
Screen2Gif on Chip.dehttps://www.chip.de/downloads/Screen-To-Gif_65993193.html
Screen2Gif on Choclateyhttps://community.chocolatey.org/packages/screentogif

Is it... "GIF", "Gif", "GIFs", "Gifs"  or....? Let me know below.

I also use another program called ShareX for screen captures- this program is much much much much more feature rich. It allows for multiple formats of screen capture, be it still image or video, or as a GIF.

The GIF files tend to be on the LARGE side...

but, hey... you learned of another application to optimize such large GIF files - just open Screen2Gif and select > Load ... this will take a moment or 2... wait for it to load up.  Once loaded, on the Edit tab select Remove Duplicates with a value of around 85%... you can leave the timing the same or make it so the time is averaged over the deleted frames(otherwise you may end up with something that resembles a timelapse). Save your now reduced size GIF.

To further optimize you GIF navigate to ezgif.com > click on optimize > upload your file > "Online GIF optimizer and compressor" > Optimization method: From the dropdown: "Lossy GIF" and a value of 35 (or more, though the quality degrades quick anything north of that 35 value... ) > click "Optimize GIF!" > wait a moment and your optimized media will load below... once loaded you can click on the save file link or right click and save.

Leave a comment below if you use Screen2Gif or have found this post useful.

Resources mentioned: Screen2GIF, ShareX, EZGIF