by daw___ on 3/22/18, 12:26 PM with 72 comments
by paulgb on 3/22/18, 5:41 PM
by daw___ on 3/22/18, 12:28 PM
This program binds a web server to the address of your wifi network interface on a random port, and sets a default handler for it. The default handler serves the content and quits the program when the transfer is complete.
The program prints a QR code that encodes the text:
Most QR apps can detect URLs in decoded text and act accordingly (i.e.: open the URL with the default browser), so when QR the code is scanned the content starts being downloaded by the mobile browser.
by ktpsns on 3/22/18, 3:20 PM
by kureikain on 3/22/18, 4:42 PM
The idea of QR code is amazing. I'll put this to my news letter next week. Look out for it
by ryanmarsh on 3/22/18, 8:13 PM
If you “play” a series of qr codes with checksums and record them from a phone and process the video on the phone you can exfil data without tripping any IDS.
Opening a port often requires privileges or can at least trip an IDS. Silly really.
by jonplackett on 3/22/18, 8:37 PM
by yoz-y on 3/22/18, 5:48 PM
2018/03/22 18:46:55 listen tcp: address fe80::XX:XXXX:XXX:XXXX:57532: too many colons in address
by spieglt on 3/23/18, 4:54 AM
by andmarios on 3/23/18, 1:07 AM
I don't know if it is the barcode scanner app (I use the one from zxing, a very popular choice), or the Android implementation (LG, Android 7), but here is a description of what happens:
As soon as I scan the barcode, it is copied to the clipboard. Then something goes to check if the URL is working (the barcode app? android clipboard? not sure). Since you exit after the first request, my browser never gets the chance to download the file. If I remove the os.Exit(), I get it working (and then terminate qr-filetransfer via ctrl+c).
Anyhow, very nice work. Kudos!
by kamil9 on 3/22/18, 9:21 PM
by daw___ on 3/22/18, 6:06 PM
by dyarosla on 3/22/18, 6:03 PM
by fiatjaf on 3/22/18, 10:15 PM
How does it happen I cannot know.
by laurent123456 on 3/22/18, 5:23 PM
The workflow would be something like: Upload to Nextcloud (it would need to ask username/password) => Get Nextcloud URL (eg via WebDAV) => Create QR code.
by eudoxus on 3/23/18, 2:31 AM
by throw501 on 3/22/18, 7:09 PM
would be nice if it could allow pipes. example to send the clipboard:
$ pbpaste | qr-filetransfer 2018/03/22 15:06:48 At least one argument is required
by kodejuice on 3/27/18, 8:56 AM
by kodejuice on 3/27/18, 8:55 AM
by thrownaway954 on 3/22/18, 4:03 PM