├── Board ├── LICENSE ├── Screw Terminal Block Version │ ├── BOM │ ├── GERBER.zip │ ├── LICENSE │ └── RENDERS │ │ ├── bottom.svg.m.png │ │ ├── credits.txt │ │ └── top.svg.m.png └── UNTESTED - IDC Punch Down Block Version │ ├── BOM │ ├── GERBER.zip │ ├── LICENSE │ └── RENDERS │ ├── bottom.svg.m.png │ ├── credits.txt │ └── top.svg.m.png ├── Code └── espthief │ ├── HelpText.h │ ├── LICENSE │ ├── License.h │ ├── espthief.ino │ ├── espthief.ino.generic.bin │ └── version.h ├── HARDWARE LICENSE ├── Images └── Assembled.jpg ├── README.md └── SOFTWARE LICENSE /Board/LICENSE: -------------------------------------------------------------------------------- 1 | HARDWARE LICENSE 2 | 3 | Human Readable License: https://creativecommons.org/licenses/by-sa/3.0/ 4 | Creative Commons 5 | Attribution-ShareAlike 3.0 Unported 6 | 7 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. 8 | 9 | License 10 | 11 | THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. 12 | 13 | BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. 14 | 15 | 1. Definitions 16 | 17 | "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. 18 | "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined below) for the purposes of this License. 19 | "Creative Commons Compatible License" means a license that is listed at https://creativecommons.org/compatiblelicenses that has been approved by Creative Commons as being essentially equivalent to this License, including, at a minimum, because that license: (i) contains terms that have the same purpose, meaning and effect as the License Elements of this License; and, (ii) explicitly permits the relicensing of adaptations of works made available under that license under this License or a Creative Commons jurisdiction license with the same License Elements as this License. 20 | "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. 21 | "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike. 22 | "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. 23 | "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. 24 | "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. 25 | "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. 26 | "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. 27 | "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. 28 | 29 | 2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. 30 | 31 | 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: 32 | 33 | to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; 34 | to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; 35 | to Distribute and Publicly Perform the Work including as incorporated in Collections; and, 36 | to Distribute and Publicly Perform Adaptations. 37 | 38 | For the avoidance of doubt: 39 | Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; 40 | Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and, 41 | Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License. 42 | 43 | The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved. 44 | 45 | 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: 46 | 47 | You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(c), as requested. 48 | You may Distribute or Publicly Perform an Adaptation only under the terms of: (i) this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible License. If you license the Adaptation under one of the licenses mentioned in (iv), you must comply with the terms of that license. If you license the Adaptation under the terms of any of the licenses mentioned in (i), (ii) or (iii) (the "Applicable License"), you must comply with the terms of the Applicable License generally and the following provisions: (I) You must include a copy of, or the URI for, the Applicable License with every copy of each Adaptation You Distribute or Publicly Perform; (II) You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License; (III) You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform; (IV) when You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License. 49 | If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Ssection 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. 50 | Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. 51 | 52 | 5. Representations, Warranties and Disclaimer 53 | 54 | UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. 55 | 56 | 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 57 | 58 | 7. Termination 59 | 60 | This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. 61 | Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. 62 | 63 | 8. Miscellaneous 64 | 65 | Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. 66 | Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. 67 | If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. 68 | No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. 69 | This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. 70 | The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. 71 | 72 | Creative Commons Notice 73 | 74 | Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor. 75 | 76 | Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of the License. 77 | 78 | Creative Commons may be contacted at https://creativecommons.org/. -------------------------------------------------------------------------------- /Board/Screw Terminal Block Version/BOM: -------------------------------------------------------------------------------- 1 | Bill of Materials: ESP-RFID-Thief 2 | 3 | Assembly List 4 | ----- 5 | 6 | Label Part Type Properties 7 | 8 | ESP-12S ESP8266 WiFi Module variant variant 12S; Mouser Part # 485-2491 9 | LM1117 Voltage Regulator LM1117 voltage 3.3V out; current 800mA; package sot223; Mouser Part # 926-LM1117MPX3.3NOPB 10 | HEADER Generic header - 6 pins. row single; pins 6; package THT; pin spacing 0.1in (2.54mm) 11 | TERMINAL Screw terminal - 4 pins pins 4; package Screw Terminal; pin spacing 0.1in (2.54mm) 12 | C1 100nF Capacitor package 0805; variant 0805; part # 100nF 13 | C2 100uF Capacitor package 1210 (3528 metric); 100uF; part # NOJB107M006RWJ 14 | C3 100uF Capacitor package 1210 (3528 metric); 100uF; part # NOJB107M006RWJ 15 | R1 10kΩ Resistor tolerance ±5%; package 0805 [SMD]; resistance 10kΩ 16 | R2 10kΩ Resistor tolerance ±5%; package 0805 [SMD]; resistance 10kΩ 17 | R3 10kΩ Resistor tolerance ±5%; package 0805 [SMD]; resistance 10kΩ 18 | R4 10kΩ Resistor tolerance ±5%; package 0805 [SMD]; resistance 10kΩ 19 | R5 10kΩ Resistor tolerance ±5%; package 0805 [SMD]; resistance 10kΩ 20 | R6 10kΩ Resistor tolerance ±5%; package 0805 [SMD]; resistance 10kΩ -------------------------------------------------------------------------------- /Board/Screw Terminal Block Version/GERBER.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exploitagency/ESP-RFID-Thief/660dfb53b2c7b6529e58bd72a13fd16332417f93/Board/Screw Terminal Block Version/GERBER.zip -------------------------------------------------------------------------------- /Board/Screw Terminal Block Version/LICENSE: -------------------------------------------------------------------------------- 1 | HARDWARE LICENSE 2 | 3 | Human Readable License: https://creativecommons.org/licenses/by-sa/3.0/ 4 | Creative Commons 5 | Attribution-ShareAlike 3.0 Unported 6 | 7 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. 8 | 9 | License 10 | 11 | THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. 12 | 13 | BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. 14 | 15 | 1. Definitions 16 | 17 | "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. 18 | "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined below) for the purposes of this License. 19 | "Creative Commons Compatible License" means a license that is listed at https://creativecommons.org/compatiblelicenses that has been approved by Creative Commons as being essentially equivalent to this License, including, at a minimum, because that license: (i) contains terms that have the same purpose, meaning and effect as the License Elements of this License; and, (ii) explicitly permits the relicensing of adaptations of works made available under that license under this License or a Creative Commons jurisdiction license with the same License Elements as this License. 20 | "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. 21 | "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike. 22 | "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. 23 | "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. 24 | "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. 25 | "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. 26 | "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. 27 | "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. 28 | 29 | 2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. 30 | 31 | 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: 32 | 33 | to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; 34 | to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; 35 | to Distribute and Publicly Perform the Work including as incorporated in Collections; and, 36 | to Distribute and Publicly Perform Adaptations. 37 | 38 | For the avoidance of doubt: 39 | Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; 40 | Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and, 41 | Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License. 42 | 43 | The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved. 44 | 45 | 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: 46 | 47 | You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(c), as requested. 48 | You may Distribute or Publicly Perform an Adaptation only under the terms of: (i) this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible License. If you license the Adaptation under one of the licenses mentioned in (iv), you must comply with the terms of that license. If you license the Adaptation under the terms of any of the licenses mentioned in (i), (ii) or (iii) (the "Applicable License"), you must comply with the terms of the Applicable License generally and the following provisions: (I) You must include a copy of, or the URI for, the Applicable License with every copy of each Adaptation You Distribute or Publicly Perform; (II) You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License; (III) You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform; (IV) when You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License. 49 | If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Ssection 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. 50 | Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. 51 | 52 | 5. Representations, Warranties and Disclaimer 53 | 54 | UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. 55 | 56 | 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 57 | 58 | 7. Termination 59 | 60 | This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. 61 | Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. 62 | 63 | 8. Miscellaneous 64 | 65 | Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. 66 | Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. 67 | If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. 68 | No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. 69 | This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. 70 | The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. 71 | 72 | Creative Commons Notice 73 | 74 | Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor. 75 | 76 | Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of the License. 77 | 78 | Creative Commons may be contacted at https://creativecommons.org/. -------------------------------------------------------------------------------- /Board/Screw Terminal Block Version/RENDERS/bottom.svg.m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exploitagency/ESP-RFID-Thief/660dfb53b2c7b6529e58bd72a13fd16332417f93/Board/Screw Terminal Block Version/RENDERS/bottom.svg.m.png -------------------------------------------------------------------------------- /Board/Screw Terminal Block Version/RENDERS/credits.txt: -------------------------------------------------------------------------------- 1 | Board renders are taken from the pcb preview on http://pcbs.io 2 | I highly recommend this manufacturer for small runs of boards. 3 | Their price is hard to beat and production times are reasonable. -------------------------------------------------------------------------------- /Board/Screw Terminal Block Version/RENDERS/top.svg.m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exploitagency/ESP-RFID-Thief/660dfb53b2c7b6529e58bd72a13fd16332417f93/Board/Screw Terminal Block Version/RENDERS/top.svg.m.png -------------------------------------------------------------------------------- /Board/UNTESTED - IDC Punch Down Block Version/BOM: -------------------------------------------------------------------------------- 1 | Bill of Materials: ESP-RFID-Thief 2 | 3 | Assembly List 4 | ----- 5 | 6 | Label Part Type Properties 7 | 8 | ESP-12S ESP8266 WiFi Module variant variant 12S; Mouser Part # 485-2491 9 | LM1117 Voltage Regulator LM1117 voltage 3.3V out; current 800mA; package sot223; Mouser Part # 926-LM1117MPX3.3NOPB 10 | HEADER Generic header - 6 pins. row single; pins 6; package THT; pin spacing 0.1in (2.54mm) 11 | C1 100nF Capacitor package 0805; variant 0805; part # 100nF 12 | C2 100uF Capacitor package 1210 (3528 metric); 100uF; part # NOJB107M006RWJ 13 | C3 100uF Capacitor package 1210 (3528 metric); 100uF; part # NOJB107M006RWJ 14 | R1 10kΩ Resistor tolerance ±5%; package 0805 [SMD]; resistance 10kΩ 15 | R2 10kΩ Resistor tolerance ±5%; package 0805 [SMD]; resistance 10kΩ 16 | R3 10kΩ Resistor tolerance ±5%; package 0805 [SMD]; resistance 10kΩ 17 | R4 10kΩ Resistor tolerance ±5%; package 0805 [SMD]; resistance 10kΩ 18 | R5 10kΩ Resistor tolerance ±5%; package 0805 [SMD]; resistance 10kΩ 19 | R6 10kΩ Resistor tolerance ±5%; package 0805 [SMD]; resistance 10kΩ 20 | 21 | Choose the wire gauge, purchase (2) of the "2 WAY" terminals and purchase the appropriate punch down tool. 22 | The combination of parts below are currently untested. 23 | 24 | Tool Punch Down Tool Hand Tools ASSEMBLY BIT INSUL DIA 1.60; Mfr. #: 069176701602000 ; Mouser Part #: 581-069176701602000 25 | 26 | Choose your targets wiring size below. 27 | * I found that you can abuse a 20AWG connector to accept from 24-20AWG wire, an 18AWG connector would not skin 24AWG wire in my tests. 28 | Research is still ongoing regarding an officially recommended connector. 29 | 30 | 18AWG IDC Punch Down Block 31 | (D0),(D1) IDC Terminal - 2 way Desc.: 2 WAY WIRE TO BD 18 AWG STRANDED ; Mfr. #: 009176002001006; Mouser Part #: 581-009176002001006 32 | (+),(-) IDC Terminal - 2 way Desc.: 2 WAY WIRE TO BD 18 AWG STRANDED ; Mfr. #: 009176002001006; Mouser Part #: 581-009176002001006 33 | 34 | 20AWG IDC Punch Down Block * 35 | (D0),(D1) IDC Terminal - 2 way Desc.: 2 WAY WIRE TO BD 20 AWG STRANDED ; Mfr. #: 009176002011006; Mouser Part #: 581-009176002011006 36 | (+),(-) IDC Terminal - 2 way Desc.: 2 WAY WIRE TO BD 20 AWG STRANDED ; Mfr. #: 009176002011006; Mouser Part #: 581-009176002011006 37 | 38 | 22AWG IDC Punch Down 39 | (D0),(D1) IDC Terminal - 2 way Desc.: 2 WAY WIRE TO BD 22 AWG STRANDED; Mfr. #: 009176002022006; Mouser Part #: 581-009176002022006 40 | (+),(-) IDC Terminal - 2 way Desc.: 2 WAY WIRE TO BD 22 AWG STRANDED; Mfr. #: 009176002022006; Mouser Part #: 581-009176002022006 41 | 42 | 24AWG IDC Punch Down 43 | (D0),(D1) IDC Terminal - 2 way Desc.: 2 WAY WIRE TO BD 24 AWG STRANDED; Mfr. #: 009176002032006; Mouser Part #: 581-009176002032006 44 | (+),(-) IDC Terminal - 2 way Desc.: 2 WAY WIRE TO BD 24 AWG STRANDED; Mfr. #: 009176002032006; Mouser Part #: 581-009176002032006 -------------------------------------------------------------------------------- /Board/UNTESTED - IDC Punch Down Block Version/GERBER.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exploitagency/ESP-RFID-Thief/660dfb53b2c7b6529e58bd72a13fd16332417f93/Board/UNTESTED - IDC Punch Down Block Version/GERBER.zip -------------------------------------------------------------------------------- /Board/UNTESTED - IDC Punch Down Block Version/LICENSE: -------------------------------------------------------------------------------- 1 | HARDWARE LICENSE 2 | 3 | Human Readable License: https://creativecommons.org/licenses/by-sa/3.0/ 4 | Creative Commons 5 | Attribution-ShareAlike 3.0 Unported 6 | 7 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. 8 | 9 | License 10 | 11 | THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. 12 | 13 | BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. 14 | 15 | 1. Definitions 16 | 17 | "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. 18 | "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined below) for the purposes of this License. 19 | "Creative Commons Compatible License" means a license that is listed at https://creativecommons.org/compatiblelicenses that has been approved by Creative Commons as being essentially equivalent to this License, including, at a minimum, because that license: (i) contains terms that have the same purpose, meaning and effect as the License Elements of this License; and, (ii) explicitly permits the relicensing of adaptations of works made available under that license under this License or a Creative Commons jurisdiction license with the same License Elements as this License. 20 | "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. 21 | "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike. 22 | "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. 23 | "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. 24 | "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. 25 | "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. 26 | "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. 27 | "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. 28 | 29 | 2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. 30 | 31 | 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: 32 | 33 | to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; 34 | to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; 35 | to Distribute and Publicly Perform the Work including as incorporated in Collections; and, 36 | to Distribute and Publicly Perform Adaptations. 37 | 38 | For the avoidance of doubt: 39 | Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; 40 | Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and, 41 | Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License. 42 | 43 | The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved. 44 | 45 | 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: 46 | 47 | You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(c), as requested. 48 | You may Distribute or Publicly Perform an Adaptation only under the terms of: (i) this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible License. If you license the Adaptation under one of the licenses mentioned in (iv), you must comply with the terms of that license. If you license the Adaptation under the terms of any of the licenses mentioned in (i), (ii) or (iii) (the "Applicable License"), you must comply with the terms of the Applicable License generally and the following provisions: (I) You must include a copy of, or the URI for, the Applicable License with every copy of each Adaptation You Distribute or Publicly Perform; (II) You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License; (III) You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform; (IV) when You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License. 49 | If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Ssection 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. 50 | Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. 51 | 52 | 5. Representations, Warranties and Disclaimer 53 | 54 | UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. 55 | 56 | 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 57 | 58 | 7. Termination 59 | 60 | This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. 61 | Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. 62 | 63 | 8. Miscellaneous 64 | 65 | Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. 66 | Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. 67 | If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. 68 | No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. 69 | This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. 70 | The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. 71 | 72 | Creative Commons Notice 73 | 74 | Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor. 75 | 76 | Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of the License. 77 | 78 | Creative Commons may be contacted at https://creativecommons.org/. -------------------------------------------------------------------------------- /Board/UNTESTED - IDC Punch Down Block Version/RENDERS/bottom.svg.m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exploitagency/ESP-RFID-Thief/660dfb53b2c7b6529e58bd72a13fd16332417f93/Board/UNTESTED - IDC Punch Down Block Version/RENDERS/bottom.svg.m.png -------------------------------------------------------------------------------- /Board/UNTESTED - IDC Punch Down Block Version/RENDERS/credits.txt: -------------------------------------------------------------------------------- 1 | Board renders are taken from the pcb preview on http://pcbs.io 2 | I highly recommend this manufacturer for small runs of boards. 3 | Their price is hard to beat and production times are reasonable. -------------------------------------------------------------------------------- /Board/UNTESTED - IDC Punch Down Block Version/RENDERS/top.svg.m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exploitagency/ESP-RFID-Thief/660dfb53b2c7b6529e58bd72a13fd16332417f93/Board/UNTESTED - IDC Punch Down Block Version/RENDERS/top.svg.m.png -------------------------------------------------------------------------------- /Code/espthief/HelpText.h: -------------------------------------------------------------------------------- 1 | const char HelpText[] PROGMEM = R"=====( 2 | 3 | 4 | ESP-RFID-Thief Help Page 5 | 6 | <- BACK TO INDEX

7 | -----
8 | HELP
9 | -----
10 |
11 | ESP-RFID-Thief
12 |
13 | Created by Corey Harding
14 | www.LegacySecurityGroup.com / www.Exploit.Agency
15 | https://github.com/exploitagency/ESP-RFID-Thief
16 | Software is based off the work of Fran Brown from Bishop Fox: https://www.bishopfox.com/resources/tools/rfid-hacking/attack-tools/
17 |
18 | The ESP-RFID-Thief is a port of the Tastic RFID Thief(Originally created by Fran Brown from Bishop Fox) to the ESP12S chip with the addition of a web interface and various new features.
19 |
20 | The ESP-RFID-Thief software is distributed under the MIT License. The license and copyright notice can not be removed and must be distributed alongside all future copies of the software.
21 |
22 | -----
23 | Accessing ESP-RFID-Thief Web Interface
24 | -----
25 |
26 | SSID: "ESP-RFID-Thief"
27 | URL: http://192.168.1.1
28 |
29 | -----
30 | Configure ESP-RFID-Thief
31 | -----
32 |
33 | Default credentials to access the configuration page:
34 | Username: "admin"
35 | Password: "hacktheplanet"
36 |
37 | Default credentials for ftp server:
38 | Username: "ftp-admin"
39 | Password: "hacktheplanet"
40 |
41 | WiFi Configuration:
42 |
43 | Network Type:
44 | Access Point Mode: Create a standalone access point(No Internet Connectivity-Requires Close Proximity)
45 | Join Existing Network: Join an existing network(Possible Internet Connectivity-Could use Device Remotely)
46 |
47 | Hidden: Choose whether or not to use a hidden SSID when creating an access point
48 |
49 | SSID: SSID of the access point to create or of the network you are choosing to join
50 | Password: Password of the access point which you wish to create or of the network you are choosing to join
51 | Channel: Channel of the access point you are creating
52 |
53 | IP: IP to set for device
54 | Gateway: Gateway to use, make it the same as ESP-RFID-Thief's IP if an access point or the same as the router if joining a network
55 | Subnet: Typically set to 255.255.255.0
56 |
57 | Web Interface Administration Settings:
58 |
59 | Username: Username to configure/upgrade ESP-RFID-Thief
60 | Password: Password to configure/upgrade ESP-RFID-Thief
61 |
62 | FTP Server Settings:
63 |
64 | Note: Supports Passive(PASV) Mode Only!
65 | Enabled: Turn FTP Server ON
66 | Disabled: Turn FTP Server OFF
67 | Username: Username to login to ftp server
68 | Password: Password to login to ftp server
69 |
70 | Power LED:
71 |
72 | Enabled: Turn ON Power LED
73 | Disabled: Turn OFF Power LED
74 |
75 | RFID Capture Log:
76 |
77 | Useful to change this value to differentiate between facilities during various security assessments.
78 | File Name: File name to save captured RFID tags to for the current security assessment.
79 |
80 | -----
81 | List Exfiltrated Data
82 | -----
83 |
84 | Displays all log files containing RFID tag captures.
85 |
86 | -----
87 | Format File System
88 | -----
89 |
90 | This will erase the contents of the SPIFFS file system including ALL RFID tag captures.
91 | Formatting may take up to 90 seconds.
92 | All current settings will be retained unless you reboot your device during this process.
93 |
94 | -----
95 | Upgrade ESP-RFID-Thief Firmware
96 | -----
97 |
98 | Authenticate using your username and password set in the configuration page.
99 |
100 | Default credentials to access the firmware upgrade page:
101 | Username: "admin"
102 | Password: "hacktheplanet"
103 |
104 | Select "Browse" choose the new firmware to be uploaded and then click "Upgrade".
105 |
106 | You will need to manually reset the device upon the browser alerting you that the upgrade was successful.
107 |
108 | -----
109 | Licensing Information
110 | -----
111 |
112 | Created by Corey Harding
113 | https://github.com/exploitagency/ESP-RFID-Thief
114 | ESP-RFID-Thief software is licensed under the MIT License
115 | /*
116 | MIT License
117 |
118 | Copyright (c) [2017] [Corey Harding]
119 |
120 | Permission is hereby granted, free of charge, to any person obtaining a copy
121 | of this software and associated documentation files (the "Software"), to deal
122 | in the Software without restriction, including without limitation the rights
123 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
124 | copies of the Software, and to permit persons to whom the Software is
125 | furnished to do so, subject to the following conditions:
126 |
127 | The above copyright notice and this permission notice shall be included in all
128 | copies or substantial portions of the Software.
129 |
130 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
131 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
132 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
133 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
134 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
135 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
136 | SOFTWARE.
137 | */

138 | Click here for additional licensing information 139 | 140 | 141 | )====="; 142 | -------------------------------------------------------------------------------- /Code/espthief/LICENSE: -------------------------------------------------------------------------------- 1 | SOFTWARE LICENSE 2 | 3 | MIT License 4 | 5 | Copyright (c) [2017] [Corey Harding] 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | -------------------------------------------------------------------------------- /Code/espthief/License.h: -------------------------------------------------------------------------------- 1 | const char License[] PROGMEM = R"=====( 2 | 3 | 4 | ESP-RFID-Thief Licensing Page 5 | 6 | <- BACK TO INDEX

7 |
  8 | ESP-RFID-Thief by Corey Harding: https://www.LegacySecurityGroup.com
  9 | Software is based off the work of Fran Brown from Bishop Fox: https://www.bishopfox.com/resources/tools/rfid-hacking/attack-tools/
 10 | Code available at: https://github.com/exploitagency/ESP-RFID-Thief
 11 | 
 12 | ESP-RFID-Thief Hardware was created by Corey Harding and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License
 13 | /*
 14 |   Human Readable License: https://creativecommons.org/licenses/by-sa/3.0/
 15 |   Creative Commons
 16 |   Attribution-ShareAlike 3.0 Unported
 17 |   
 18 |       CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. 
 19 |   
 20 |   License
 21 |   
 22 |   THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
 23 |   
 24 |   BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 25 |   
 26 |   1. Definitions
 27 |   
 28 |       "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
 29 |       "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined below) for the purposes of this License.
 30 |       "Creative Commons Compatible License" means a license that is listed at https://creativecommons.org/compatiblelicenses that has been approved by Creative Commons as being essentially equivalent to this License, including, at a minimum, because that license: (i) contains terms that have the same purpose, meaning and effect as the License Elements of this License; and, (ii) explicitly permits the relicensing of adaptations of works made available under that license under this License or a Creative Commons jurisdiction license with the same License Elements as this License.
 31 |       "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
 32 |       "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike.
 33 |       "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
 34 |       "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
 35 |       "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
 36 |       "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
 37 |       "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
 38 |       "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
 39 |   
 40 |   2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
 41 |   
 42 |   3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
 43 |   
 44 |       to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;
 45 |       to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";
 46 |       to Distribute and Publicly Perform the Work including as incorporated in Collections; and,
 47 |       to Distribute and Publicly Perform Adaptations.
 48 |   
 49 |       For the avoidance of doubt:
 50 |           Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
 51 |           Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and,
 52 |           Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License.
 53 |   
 54 |   The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved.
 55 |   
 56 |   4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
 57 |   
 58 |       You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(c), as requested.
 59 |       You may Distribute or Publicly Perform an Adaptation only under the terms of: (i) this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible License. If you license the Adaptation under one of the licenses mentioned in (iv), you must comply with the terms of that license. If you license the Adaptation under the terms of any of the licenses mentioned in (i), (ii) or (iii) (the "Applicable License"), you must comply with the terms of the Applicable License generally and the following provisions: (I) You must include a copy of, or the URI for, the Applicable License with every copy of each Adaptation You Distribute or Publicly Perform; (II) You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License; (III) You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform; (IV) when You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License.
 60 |       If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Ssection 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
 61 |       Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise.
 62 |   
 63 |   5. Representations, Warranties and Disclaimer
 64 |   
 65 |   UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
 66 |   
 67 |   6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
 68 |   
 69 |   7. Termination
 70 |   
 71 |       This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
 72 |       Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
 73 |   
 74 |   8. Miscellaneous
 75 |   
 76 |       Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
 77 |       Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
 78 |       If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
 79 |       No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
 80 |       This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
 81 |       The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
 82 |   
 83 |       Creative Commons Notice
 84 |   
 85 |       Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor.
 86 |   
 87 |       Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of the License.
 88 |   
 89 |   Creative Commons may be contacted at https://creativecommons.org/.
 90 | */
 91 | 
 92 | ESP-RFID-Thief software is licensed under the MIT License
 93 | /*
 94 |  MIT License
 95 | 
 96 |  Copyright (c) [2017] [Corey Harding]
 97 | 
 98 |  Permission is hereby granted, free of charge, to any person obtaining a copy
 99 |  of this software and associated documentation files (the "Software"), to deal
100 |  in the Software without restriction, including without limitation the rights
101 |  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
102 |  copies of the Software, and to permit persons to whom the Software is
103 |  furnished to do so, subject to the following conditions:
104 | 
105 |  The above copyright notice and this permission notice shall be included in all
106 |  copies or substantial portions of the Software.
107 | 
108 |  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
109 |  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
110 |  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
111 |  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
112 |  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
113 |  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
114 |  SOFTWARE.
115 | */
116 | 
117 | Core libraries used:
118 | 
119 | /*
120 |  Arduino.h - Main include file for the Arduino SDK
121 |  Copyright (c) 2005-2013 Arduino Team. All right reserved.
122 |  This library is free software; you can redistribute it and/or
123 |  modify it under the terms of the GNU Lesser General Public
124 |  License as published by the Free Software Foundation; either
125 |  version 2.1 of the License, or (at your option) any later version.
126 |  This library is distributed in the hope that it will be useful,
127 |  but WITHOUT ANY WARRANTY; without even the implied warranty of
128 |  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
129 |  Lesser General Public License for more details.
130 |  You should have received a copy of the GNU Lesser General Public
131 |  License along with this library; if not, write to the Free Software
132 |  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
133 | */
134 | 
135 | /*
136 |  ESP8266WiFi.h - esp8266 Wifi support.
137 |  Based on WiFi.h from Arduino WiFi shield library.
138 |  Copyright (c) 2011-2014 Arduino. All right reserved.
139 |  Modified by Ivan Grokhotkov, December 2014
140 |  This library is free software; you can redistribute it and/or
141 |  modify it under the terms of the GNU Lesser General Public
142 |  License as published by the Free Software Foundation; either
143 |  version 2.1 of the License, or (at your option) any later version.
144 |  This library is distributed in the hope that it will be useful,
145 |  but WITHOUT ANY WARRANTY; without even the implied warranty of
146 |  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
147 |  Lesser General Public License for more details.
148 |  You should have received a copy of the GNU Lesser General Public
149 |  License along with this library; if not, write to the Free Software
150 |  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
151 | */
152 | 
153 | /*
154 |  WiFiClient.h - Library for Arduino Wifi shield.
155 |  Copyright (c) 2011-2014 Arduino. All right reserved.
156 |  This library is free software; you can redistribute it and/or
157 |  modify it under the terms of the GNU Lesser General Public
158 |  License as published by the Free Software Foundation; either
159 |  version 2.1 of the License, or (at your option) any later version.
160 |  This library is distributed in the hope that it will be useful,
161 |  but WITHOUT ANY WARRANTY; without even the implied warranty of
162 |  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
163 |  Lesser General Public License for more details.
164 |  You should have received a copy of the GNU Lesser General Public
165 |  License along with this library; if not, write to the Free Software
166 |  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
167 |  Modified by Ivan Grokhotkov, December 2014 - esp8266 support
168 | */
169 | 
170 | /*
171 |  ESP8266WebServer.h - Dead simple web-server.
172 |  Supports only one simultaneous client, knows how to handle GET and POST.
173 |  Copyright (c) 2014 Ivan Grokhotkov. All rights reserved.
174 |  This library is free software; you can redistribute it and/or
175 |  modify it under the terms of the GNU Lesser General Public
176 |  License as published by the Free Software Foundation; either
177 |  version 2.1 of the License, or (at your option) any later version.
178 |  This library is distributed in the hope that it will be useful,
179 |  but WITHOUT ANY WARRANTY; without even the implied warranty of
180 |  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
181 |  Lesser General Public License for more details.
182 |  You should have received a copy of the GNU Lesser General Public
183 |  License along with this library; if not, write to the Free Software
184 |  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
185 |  Modified 8 May 2015 by Hristo Gochkov (proper post and file upload handling)
186 | */
187 | 
188 | /*
189 |  Esp8266httpupdateserver.h No license information available.
190 | */
191 | 
192 | /*
193 |  ESP8266mDNS.h
194 |  ESP8266 Multicast DNS (port of CC3000 Multicast DNS library)
195 |  Version 1.1
196 |  Copyright (c) 2013 Tony DiCola (tony@tonydicola.com)
197 |  ESP8266 port (c) 2015 Ivan Grokhotkov (ivan@esp8266.com)
198 |  Extended MDNS-SD support 2016 Lars Englund (lars.englund@gmail.com)
199 |  This is a simple implementation of multicast DNS query support for an Arduino
200 |  running on ESP8266 chip. Only support for resolving address queries is currently
201 |  implemented.
202 |  License (MIT license):
203 |  Permission is hereby granted, free of charge, to any person obtaining a copy
204 |  of this software and associated documentation files (the "Software"), to deal
205 |  in the Software without restriction, including without limitation the rights
206 |  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
207 |  copies of the Software, and to permit persons to whom the Software is
208 |  furnished to do so, subject to the following conditions:
209 |  The above copyright notice and this permission notice shall be included in
210 |  all copies or substantial portions of the Software.
211 |  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
212 |  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
213 |  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
214 |  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
215 |  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
216 |  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
217 |  THE SOFTWARE.
218 | */
219 | 
220 | /*
221 |  FS.h - file system wrapper
222 |  Copyright (c) 2015 Ivan Grokhotkov. All rights reserved.
223 |  This file is part of the esp8266 core for Arduino environment.
224 |  This library is free software; you can redistribute it and/or
225 |  modify it under the terms of the GNU Lesser General Public
226 |  License as published by the Free Software Foundation; either
227 |  version 2.1 of the License, or (at your option) any later version.
228 |  This library is distributed in the hope that it will be useful,
229 |  but WITHOUT ANY WARRANTY; without even the implied warranty of
230 |  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
231 |  Lesser General Public License for more details.
232 |  You should have received a copy of the GNU Lesser General Public
233 |  License along with this library; if not, write to the Free Software
234 |  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
235 | */
236 | 
237 | /*
238 |  ArduinoJson.h
239 |  The MIT License (MIT)
240 |  ---------------------
241 | 
242 |  Copyright (c) 2014-2017 Benoit BLANCHON
243 | 
244 |  Permission is hereby granted, free of charge, to any person obtaining a copy
245 |  of this software and associated documentation files (the "Software"), to deal
246 |  in the Software without restriction, including without limitation the rights
247 |  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
248 |  copies of the Software, and to permit persons to whom the Software is
249 |  furnished to do so, subject to the following conditions:
250 | 
251 |  The above copyright notice and this permission notice shall be included in all
252 |  copies or substantial portions of the Software.
253 | 
254 |  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
255 |  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
256 |  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
257 |  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
258 |  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
259 |  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
260 |  SOFTWARE.
261 | */
262 | 
263 | /*
264 |  ESP8266FtpServer.h - by nailbuster, later modified by bbx10 and apullin
265 |                    GNU LESSER GENERAL PUBLIC LICENSE
266 |                        Version 2.1, February 1999
267 |  https://github.com/apullin/esp8266FTPServer/blob/feature/bbx10_speedup/LICENSE
268 | */
269 | 
270 | /*
271 |   DoubleResetDetector.h by Stephen Denne
272 |   MIT License
273 |   
274 |   Copyright (c) 2017 Stephen Denne
275 |   
276 |   Permission is hereby granted, free of charge, to any person obtaining a copy
277 |   of this software and associated documentation files (the "Software"), to deal
278 |   in the Software without restriction, including without limitation the rights
279 |   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
280 |   copies of the Software, and to permit persons to whom the Software is
281 |   furnished to do so, subject to the following conditions:
282 |   
283 |   The above copyright notice and this permission notice shall be included in all
284 |   copies or substantial portions of the Software.
285 |   
286 |   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
287 |   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
288 |   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
289 |   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
290 |   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
291 |   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
292 |   SOFTWARE.
293 | */
294 | 
295 | This is not a comprehensive list, these "Core Libraries" may depend on additional
296 | libraries, more information can be obtained by viewing the source code of the main libraries.
297 | 
298 | 299 | 300 | )====="; 301 | -------------------------------------------------------------------------------- /Code/espthief/espthief.ino: -------------------------------------------------------------------------------- 1 | /* 2 | * ESP-RFID-Thief 3 | * Original Tastic RFID Thief by Fran Brown of Bishop Fox 4 | * Ported to the ESP12S by Corey Harding of www.Exploit.Agency / www.LegacySecurityGroup.com 5 | * ESP-RFID-Thief Software is distributed under the MIT License. The license and copyright notice can not be removed and must be distributed alongside all future copies of the software. 6 | * MIT License 7 | 8 | Copyright (c) [2017] [Corey Harding] 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in all 18 | copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 22 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 24 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 25 | SOFTWARE. 26 | */ 27 | #include "HelpText.h" 28 | #include "License.h" 29 | #include "version.h" 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include // ArduinoJson library 5.11.0 by Benoit Blanchon https://github.com/bblanchon/ArduinoJson 39 | #include // https://github.com/exploitagency/esp8266FTPServer/tree/feature/bbx10_speedup 40 | #include 41 | #include 42 | #include // Double Reset Detector library VERSION: 1.0.0 by Stephen Denne https://github.com/datacute/DoubleResetDetector 43 | 44 | #define DRD_TIMEOUT 3 45 | #define DRD_ADDRESS 0 46 | DoubleResetDetector drd(DRD_TIMEOUT, DRD_ADDRESS); 47 | 48 | #define LED_BUILTIN 2 49 | #define DATA0 14 50 | #define DATA1 12 51 | 52 | // Port for web server 53 | ESP8266WebServer server(80); 54 | ESP8266WebServer httpServer(1337); 55 | ESP8266HTTPUpdateServer httpUpdater; 56 | FtpServer ftpSrv; 57 | const byte DNS_PORT = 53; 58 | DNSServer dnsServer; 59 | 60 | HTTPClient http; 61 | 62 | const char* update_path = "/update"; 63 | int accesspointmode; 64 | char ssid[32]; 65 | char password[64]; 66 | int channel; 67 | int hidden; 68 | char local_IPstr[16]; 69 | char gatewaystr[16]; 70 | char subnetstr[16]; 71 | char update_username[32]; 72 | char update_password[64]; 73 | char ftp_username[32]; 74 | char ftp_password[64]; 75 | int ftpenabled; 76 | int ledenabled; 77 | char logname[31]; 78 | 79 | // Begin RFID Thief Config 80 | #define MAX_BITS 100 // max number of bits 81 | #define WEIGAND_WAIT_TIME 3000 // time to wait for another weigand pulse. 82 | 83 | 84 | unsigned char databits[MAX_BITS]; // stores all of the data bits 85 | volatile unsigned int bitCount = 0; 86 | unsigned char flagDone; // goes low when data is currently being captured 87 | unsigned int weigand_counter; // countdown until we assume there are no more bits 88 | 89 | volatile unsigned long facilityCode=0; // decoded facility code 90 | volatile unsigned long cardCode=0; // decoded card code 91 | 92 | // Breaking up card value into 2 chunks to create 10 char HEX value 93 | volatile unsigned long bitHolder1 = 0; 94 | volatile unsigned long bitHolder2 = 0; 95 | volatile unsigned long cardChunk1 = 0; 96 | volatile unsigned long cardChunk2 = 0; 97 | 98 | 99 | /////////////////////////////////////////////////////// 100 | // Process interrupts 101 | 102 | // interrupt that happens when INTO goes low (0 bit) 103 | void ISR_INT0() 104 | { 105 | //Serial.print("0"); 106 | bitCount++; 107 | flagDone = 0; 108 | 109 | if(bitCount < 23) { 110 | bitHolder1 = bitHolder1 << 1; 111 | } 112 | else { 113 | bitHolder2 = bitHolder2 << 1; 114 | } 115 | 116 | weigand_counter = WEIGAND_WAIT_TIME; 117 | 118 | } 119 | 120 | // interrupt that happens when INT1 goes low (1 bit) 121 | void ISR_INT1() 122 | { 123 | //Serial.print("1"); 124 | bitCount++; 125 | flagDone = 0; 126 | 127 | if(bitCount < 23) { 128 | bitHolder1 = bitHolder1 << 1; 129 | bitHolder1 |= 1; 130 | } 131 | else { 132 | bitHolder2 = bitHolder2 << 1; 133 | bitHolder2 |= 1; 134 | } 135 | 136 | weigand_counter = WEIGAND_WAIT_TIME; 137 | } 138 | // End RFID Thief Config 139 | 140 | void settingsPage() 141 | { 142 | if(!server.authenticate(update_username, update_password)) 143 | return server.requestAuthentication(); 144 | String accesspointmodeyes; 145 | String accesspointmodeno; 146 | if (accesspointmode==1){ 147 | accesspointmodeyes=" checked=\"checked\""; 148 | accesspointmodeno=""; 149 | } 150 | else { 151 | accesspointmodeyes=""; 152 | accesspointmodeno=" checked=\"checked\""; 153 | } 154 | String ftpenabledyes; 155 | String ftpenabledno; 156 | if (ftpenabled==1){ 157 | ftpenabledyes=" checked=\"checked\""; 158 | ftpenabledno=""; 159 | } 160 | else { 161 | ftpenabledyes=""; 162 | ftpenabledno=" checked=\"checked\""; 163 | } 164 | String ledenabledyes; 165 | String ledenabledno; 166 | if (ledenabled==1){ 167 | ledenabledyes=" checked=\"checked\""; 168 | ledenabledno=""; 169 | } 170 | else { 171 | ledenabledyes=""; 172 | ledenabledno=" checked=\"checked\""; 173 | } 174 | String hiddenyes; 175 | String hiddenno; 176 | if (hidden==1){ 177 | hiddenyes=" checked=\"checked\""; 178 | hiddenno=""; 179 | } 180 | else { 181 | hiddenyes=""; 182 | hiddenno=" checked=\"checked\""; 183 | } 184 | server.send(200, "text/html", 185 | String()+ 186 | F( 187 | "" 188 | "" 189 | "" 190 | "" 191 | "ESP-RFID-Thief Settings" 192 | "" 195 | "" 196 | "" 197 | "<- BACK TO INDEX

" 198 | "

ESP-RFID-Thief Settings

" 199 | "" 200 | "
" 201 | "
" 202 | "

" 203 | "WiFi Configuration:

" 204 | "Network Type
" 205 | )+ 206 | F("Access Point Mode:
" 207 | "Join Existing Network:

" 208 | "Hidden
" 209 | "Yes
" 210 | "No

" 211 | "SSID:
" 212 | "Password:
" 213 | "Channel:

" 214 | "IP:
" 215 | "Gateway:
" 216 | "Subnet:

" 217 | "


" 218 | "Web Interface Administration Settings:

" 219 | "Username:
" 220 | "Password:

" 221 | "
" 222 | "FTP Server Settings
" 223 | "Changes require a reboot.
" 224 | "Enabled
" 225 | "Disabled
" 226 | "FTP Username:
" 227 | "FTP Password:

" 228 | "
" 229 | "Power LED:
" 230 | "Changes require a reboot.
" 231 | "Enabled
" 232 | "Disabled

" 233 | "
" 234 | "RFID Capture Log:
" 235 | "Useful to change this value to differentiate between facilities during various security assessments.
" 236 | "File Name:
" 237 | "
" 238 | "" 239 | "" 240 | "
" 241 | "
" 242 | "

" 243 | "" 244 | "" 245 | ) 246 | ); 247 | } 248 | 249 | void handleSettings() 250 | { 251 | if (server.hasArg("SETTINGS")) { 252 | handleSubmitSettings(); 253 | } 254 | else { 255 | settingsPage(); 256 | } 257 | } 258 | 259 | void returnFail(String msg) 260 | { 261 | server.sendHeader("Connection", "close"); 262 | server.sendHeader("Access-Control-Allow-Origin", "*"); 263 | server.send(500, "text/plain", msg + "\r\n"); 264 | } 265 | 266 | void handleSubmitSettings() 267 | { 268 | String SETTINGSvalue; 269 | 270 | if (!server.hasArg("SETTINGS")) return returnFail("BAD ARGS"); 271 | 272 | SETTINGSvalue = server.arg("SETTINGS"); 273 | accesspointmode = server.arg("accesspointmode").toInt(); 274 | server.arg("ssid").toCharArray(ssid, 32); 275 | server.arg("password").toCharArray(password, 64); 276 | channel = server.arg("channel").toInt(); 277 | hidden = server.arg("hidden").toInt(); 278 | server.arg("local_IPstr").toCharArray(local_IPstr, 16); 279 | server.arg("gatewaystr").toCharArray(gatewaystr, 16); 280 | server.arg("subnetstr").toCharArray(subnetstr, 16); 281 | server.arg("update_username").toCharArray(update_username, 32); 282 | server.arg("update_password").toCharArray(update_password, 64); 283 | server.arg("ftp_username").toCharArray(ftp_username, 32); 284 | server.arg("ftp_password").toCharArray(ftp_password, 64); 285 | ftpenabled = server.arg("ftpenabled").toInt(); 286 | ledenabled = server.arg("ledenabled").toInt(); 287 | server.arg("logname").toCharArray(logname, 31); 288 | 289 | if (SETTINGSvalue == "1") { 290 | saveConfig(); 291 | server.send(200, "text/html", F("<- BACK TO INDEX



Settings have been saved.
Some setting may require manually rebooting before taking effect.
If network configuration has changed then be sure to connect to the new network first in order to access the web interface.")); 292 | loadConfig(); 293 | } 294 | else if (SETTINGSvalue == "0") { 295 | settingsPage(); 296 | } 297 | else { 298 | returnFail("Bad SETTINGS value"); 299 | } 300 | } 301 | 302 | bool loadDefaults() { 303 | StaticJsonBuffer<500> jsonBuffer; 304 | JsonObject& json = jsonBuffer.createObject(); 305 | json["version"] = version; 306 | json["accesspointmode"] = "1"; 307 | json["ssid"] = "ESP-RFID-Thief"; 308 | json["password"] = ""; 309 | json["channel"] = "6"; 310 | json["hidden"] = "0"; 311 | json["local_IP"] = "192.168.1.1"; 312 | json["gateway"] = "192.168.1.1"; 313 | json["subnet"] = "255.255.255.0"; 314 | json["update_username"] = "admin"; 315 | json["update_password"] = "hacktheplanet"; 316 | json["ftp_username"] = "ftp-admin"; 317 | json["ftp_password"] = "hacktheplanet"; 318 | json["ftpenabled"] = "0"; 319 | json["ledenabled"] = "1"; 320 | json["logname"] = "log.txt"; 321 | File configFile = SPIFFS.open("/esprfidthief.json", "w"); 322 | json.printTo(configFile); 323 | loadConfig(); 324 | } 325 | 326 | bool loadConfig() { 327 | File configFile = SPIFFS.open("/esprfidthief.json", "r"); 328 | if (!configFile) { 329 | delay(3500); 330 | loadDefaults(); 331 | } 332 | 333 | size_t size = configFile.size(); 334 | 335 | std::unique_ptr buf(new char[size]); 336 | configFile.readBytes(buf.get(), size); 337 | StaticJsonBuffer<500> jsonBuffer; 338 | JsonObject& json = jsonBuffer.parseObject(buf.get()); 339 | 340 | if (!json["version"]) { 341 | delay(3500); 342 | loadDefaults(); 343 | ESP.restart(); 344 | } 345 | 346 | //Resets config to factory defaults on an update. 347 | if (json["version"]!=version) { 348 | delay(3500); 349 | loadDefaults(); 350 | ESP.restart(); 351 | } 352 | 353 | strcpy(ssid, (const char*)json["ssid"]); 354 | strcpy(password, (const char*)json["password"]); 355 | channel = json["channel"]; 356 | hidden = json["hidden"]; 357 | accesspointmode = json["accesspointmode"]; 358 | strcpy(local_IPstr, (const char*)json["local_IP"]); 359 | strcpy(gatewaystr, (const char*)json["gateway"]); 360 | strcpy(subnetstr, (const char*)json["subnet"]); 361 | 362 | strcpy(update_username, (const char*)json["update_username"]); 363 | strcpy(update_password, (const char*)json["update_password"]); 364 | 365 | strcpy(ftp_username, (const char*)json["ftp_username"]); 366 | strcpy(ftp_password, (const char*)json["ftp_password"]); 367 | ftpenabled = json["ftpenabled"]; 368 | ledenabled = json["ledenabled"]; 369 | strcpy(logname, (const char*)json["logname"]); 370 | 371 | IPAddress local_IP; 372 | local_IP.fromString(local_IPstr); 373 | IPAddress gateway; 374 | gateway.fromString(gatewaystr); 375 | IPAddress subnet; 376 | subnet.fromString(subnetstr); 377 | 378 | /* 379 | Serial.println(accesspointmode); 380 | Serial.println(ssid); 381 | Serial.println(password); 382 | Serial.println(channel); 383 | Serial.println(hidden); 384 | Serial.println(local_IP); 385 | Serial.println(gateway); 386 | Serial.println(subnet); 387 | */ 388 | WiFi.persistent(false); 389 | //ESP.eraseConfig(); 390 | // Determine if set to Access point mode 391 | if (accesspointmode == 1) { 392 | WiFi.disconnect(true); 393 | WiFi.mode(WIFI_AP); 394 | 395 | // Serial.print("Starting Access Point ... "); 396 | // Serial.println(WiFi.softAP(ssid, password, channel, hidden) ? "Success" : "Failed!"); 397 | WiFi.softAP(ssid, password, channel, hidden); 398 | 399 | // Serial.print("Setting up Network Configuration ... "); 400 | // Serial.println(WiFi.softAPConfig(local_IP, gateway, subnet) ? "Success" : "Failed!"); 401 | WiFi.softAPConfig(local_IP, gateway, subnet); 402 | 403 | // WiFi.reconnect(); 404 | 405 | // Serial.print("IP address = "); 406 | // Serial.println(WiFi.softAPIP()); 407 | } 408 | // or Join existing network 409 | else if (accesspointmode != 1) { 410 | WiFi.disconnect(true); 411 | WiFi.mode(WIFI_STA); 412 | // Serial.print("Setting up Network Configuration ... "); 413 | WiFi.config(local_IP, gateway, subnet); 414 | // WiFi.config(local_IP, gateway, subnet); 415 | 416 | // Serial.print("Connecting to network ... "); 417 | // WiFi.begin(ssid, password); 418 | WiFi.begin(ssid, password); 419 | WiFi.reconnect(); 420 | 421 | // Serial.print("IP address = "); 422 | // Serial.println(WiFi.localIP()); 423 | } 424 | 425 | return true; 426 | } 427 | 428 | bool saveConfig() { 429 | StaticJsonBuffer<500> jsonBuffer; 430 | JsonObject& json = jsonBuffer.createObject(); 431 | json["version"] = version; 432 | json["accesspointmode"] = accesspointmode; 433 | json["ssid"] = ssid; 434 | json["password"] = password; 435 | json["channel"] = channel; 436 | json["hidden"] = hidden; 437 | json["local_IP"] = local_IPstr; 438 | json["gateway"] = gatewaystr; 439 | json["subnet"] = subnetstr; 440 | json["update_username"] = update_username; 441 | json["update_password"] = update_password; 442 | json["ftp_username"] = ftp_username; 443 | json["ftp_password"] = ftp_password; 444 | json["ftpenabled"] = ftpenabled; 445 | json["ledenabled"] = ledenabled; 446 | json["logname"] = logname; 447 | 448 | File configFile = SPIFFS.open("/esprfidthief.json", "w"); 449 | json.printTo(configFile); 450 | return true; 451 | } 452 | 453 | File fsUploadFile; 454 | String webString; 455 | 456 | void ListLogs(){ 457 | String directory; 458 | directory="/"; 459 | FSInfo fs_info; 460 | SPIFFS.info(fs_info); 461 | String total; 462 | total=fs_info.totalBytes; 463 | String used; 464 | used=fs_info.usedBytes; 465 | String freespace; 466 | freespace=fs_info.totalBytes-fs_info.usedBytes; 467 | Dir dir = SPIFFS.openDir(directory); 468 | String FileList = String()+F("<- BACK TO INDEX

File System Info Calculated in Bytes
Total: ")+total+" Free: "+freespace+" "+" Used: "+used+"

"; 469 | while (dir.next()) { 470 | String FileName = dir.fileName(); 471 | File f = dir.openFile("r"); 472 | FileList += " "; 473 | if((!FileName.startsWith("/payloads/"))&&(!FileName.startsWith("/esploit.json"))&&(!FileName.startsWith("/esportal.json"))&&(!FileName.startsWith("/esprfidthief.json"))&&(!FileName.startsWith("/config.json"))) FileList += ""+""; 474 | } 475 | FileList += "
Display File ContentsSize in BytesDownload FileDelete File
"+FileName+""+f.size()+"
"; 476 | server.send(200, "text/html", FileList); 477 | } 478 | 479 | bool RawFile(String rawfile) { 480 | if (SPIFFS.exists(rawfile)) { 481 | if(!server.authenticate(update_username, update_password)){ 482 | server.requestAuthentication();} 483 | File file = SPIFFS.open(rawfile, "r"); 484 | size_t sent = server.streamFile(file, "application/octet-stream"); 485 | file.close(); 486 | return true; 487 | } 488 | return false; 489 | } 490 | 491 | void ViewLog(){ 492 | webString=""; 493 | String payload; 494 | String ShowPL; 495 | payload += server.arg(0); 496 | File f = SPIFFS.open(payload, "r"); 497 | String webString = f.readString(); 498 | f.close(); 499 | ShowPL = String()+F("<- BACK TO INDEX

List Exfiltrated Data

-
"+payload+"\n-----\n"+webString+"
"; 500 | webString=""; 501 | server.send(200, "text/html", ShowPL); 502 | } 503 | 504 | // Start Networking 505 | void setup() { 506 | Serial.begin(9600); 507 | //SPIFFS.format(); 508 | SPIFFS.begin(); 509 | 510 | //loadDefaults(); //uncomment to restore default settings if double reset fails for some reason 511 | 512 | if (drd.detectDoubleReset()) { 513 | Serial.println("Double Reset Detected"); 514 | Serial.println("Loading default config..."); 515 | loadDefaults(); 516 | } 517 | 518 | loadConfig(); 519 | 520 | //Set up Web Pages 521 | server.on("/",[]() { 522 | FSInfo fs_info; 523 | SPIFFS.info(fs_info); 524 | String total; 525 | total=fs_info.totalBytes; 526 | String used; 527 | used=fs_info.usedBytes; 528 | String freespace; 529 | freespace=fs_info.totalBytes-fs_info.usedBytes; 530 | server.send(200, "text/html", String()+F("ESP-RFID-Thief v")+version+F("

by Corey Harding
www.LegacySecurityGroup.com / www.Exploit.Agency

-----
File System Info Calculated in Bytes
Total: ")+total+" Free: "+freespace+" "+" Used: "+used+F("
-----
List Exfiltrated Data
-
Configure Settings
-
Format File System
-
Upgrade Firmware
-
Help")); 531 | }); 532 | 533 | server.onNotFound([]() { 534 | if (!RawFile(server.uri())) 535 | server.send(404, "text/plain", F("Error 404 File Not Found")); 536 | }); 537 | server.on("/settings", handleSettings); 538 | 539 | server.on("/firmware", [](){ 540 | server.send(200, "text/html", String()+F("<- BACK TO INDEX

Open Arduino IDE.
Pull down \"Sketch\" Menu then select \"Export Compiled Binary\".
On this page click \"Browse\", select the binary you exported earlier, then click \"Update\".
You may need to manually reboot the device to reconnect.
")); 541 | }); 542 | 543 | server.on("/restoredefaults", [](){ 544 | server.send(200, "text/html", F("This will restore the device to the default configuration.

Are you sure?

YES - NO")); 545 | }); 546 | 547 | server.on("/restoredefaults/yes", [](){ 548 | if(!server.authenticate(update_username, update_password)) 549 | return server.requestAuthentication(); 550 | server.send(200, "text/html", F("<- BACK TO INDEX

Network
---
SSID: ESP-RFID-Thief

Administration
---
USER: admin PASS: hacktheplanet")); 551 | loadDefaults(); 552 | ESP.restart(); 553 | }); 554 | 555 | server.on("/deletelog", [](){ 556 | String deletelog; 557 | deletelog += server.arg(0); 558 | server.send(200, "text/html", String()+F("This will delete the file: ")+deletelog+F(".

Are you sure?

YES - NO")); 559 | }); 560 | 561 | server.on("/viewlog", ViewLog); 562 | 563 | server.on("/deletelog/yes", [](){ 564 | if(!server.authenticate(update_username, update_password)) 565 | return server.requestAuthentication(); 566 | String deletelog; 567 | deletelog += server.arg(0); 568 | if (!deletelog.startsWith("/payloads/")) server.send(200, "text/html", String()+F("<- BACK TO INDEX

List Exfiltrated Data

Deleting file: ")+deletelog); 569 | SPIFFS.remove(deletelog); 570 | }); 571 | 572 | server.on("/format", [](){ 573 | server.send(200, "text/html", F("<- BACK TO INDEX

This will reformat the SPIFFS File System.

Are you sure?

YES - NO")); 574 | }); 575 | 576 | server.on("/logs", ListLogs); 577 | 578 | server.on("/reboot", [](){ 579 | if(!server.authenticate(update_username, update_password)) 580 | return server.requestAuthentication(); 581 | server.send(200, "text/html", F("<- BACK TO INDEX

Rebooting Device...")); 582 | ESP.restart(); 583 | }); 584 | 585 | server.on("/format/yes", [](){ 586 | if(!server.authenticate(update_username, update_password)) 587 | return server.requestAuthentication(); 588 | server.send(200, "text/html", F("<- BACK TO INDEX

Formatting file system: This may take up to 90 seconds")); 589 | // Serial.print("Formatting file system..."); 590 | SPIFFS.format(); 591 | // Serial.println(" Success"); 592 | saveConfig(); 593 | }); 594 | 595 | server.on("/help", []() { 596 | server.send_P(200, "text/html", HelpText); 597 | }); 598 | 599 | server.on("/license", []() { 600 | server.send_P(200, "text/html", License); 601 | }); 602 | 603 | server.begin(); 604 | WiFiClient client; 605 | client.setNoDelay(1); 606 | 607 | // Serial.println("Web Server Started"); 608 | 609 | MDNS.begin("ESP"); 610 | 611 | httpUpdater.setup(&httpServer, update_path, update_username, update_password); 612 | httpServer.begin(); 613 | 614 | MDNS.addService("http", "tcp", 1337); 615 | 616 | if (ftpenabled==1){ 617 | ftpSrv.begin(String(ftp_username),String(ftp_password)); 618 | } 619 | 620 | //Start RFID Reader 621 | pinMode(LED_BUILTIN, OUTPUT); // LED 622 | if (ledenabled==1){ 623 | digitalWrite(LED_BUILTIN, LOW); 624 | } 625 | else{ 626 | digitalWrite(LED_BUILTIN, HIGH); 627 | } 628 | pinMode(DATA0, INPUT); // DATA0 (INT0) 629 | pinMode(DATA1, INPUT); // DATA1 (INT1) 630 | 631 | //Serial.println("RFID Reader Started"); 632 | 633 | // binds the ISR functions to the falling edge of INTO and INT1 634 | attachInterrupt(DATA0, ISR_INT0, FALLING); 635 | attachInterrupt(DATA1, ISR_INT1, FALLING); 636 | 637 | weigand_counter = WEIGAND_WAIT_TIME; 638 | } 639 | // 640 | 641 | //Do It! 642 | 643 | /////////////////////////////////////////////////////// 644 | // LOOP function 645 | void loop() 646 | { 647 | if (ftpenabled==1){ 648 | ftpSrv.handleFTP(); 649 | } 650 | server.handleClient(); 651 | httpServer.handleClient(); 652 | while (Serial.available()) { 653 | String cmd = Serial.readStringUntil(':'); 654 | if(cmd == "ResetDefaultConfig"){ 655 | loadDefaults(); 656 | ESP.restart(); 657 | } 658 | } 659 | drd.loop(); 660 | 661 | //Serial.print("Free heap-"); 662 | //Serial.println(ESP.getFreeHeap(),DEC); 663 | 664 | // This waits to make sure that there have been no more data pulses before processing data 665 | if (!flagDone) { 666 | 667 | if (--weigand_counter == 0) 668 | flagDone = 1; 669 | 670 | } 671 | 672 | // if we have bits and we the weigand counter went out 673 | if (bitCount > 0 && flagDone) { 674 | unsigned char i; 675 | 676 | getCardValues(); 677 | getCardNumAndSiteCode(); 678 | 679 | printBits(); 680 | 681 | // cleanup and get ready for the next card 682 | bitCount = 0; facilityCode = 0; cardCode = 0; 683 | bitHolder1 = 0; bitHolder2 = 0; 684 | cardChunk1 = 0; cardChunk2 = 0; 685 | 686 | for (i=0; i