Commit Graph

149 Commits

Author SHA1 Message Date
Matias Barcenas aabe322633 Shortened banner printing delay time. 2017-08-14 18:50:02 -05:00
Matias Barcenas 0a2ce6fcd1 Rewrote FormatUtils for performance & fixed bugs.
Rewrote FormatUtils to correct bad performance (sluggish on slow systems).
Changed FormatUtils API to accomodate for new performance enhancements.
Added a new literal to FormatUtils's formats, the double asterisk (**).
FormatUtils will now replace all asterisks, double asterisk (**).

Fixed an issue caused by long ESSIDs and long interface driver descriptors.
2017-08-14 17:13:47 -05:00
Matias Barcenas b154c26ae8 Updated FormatUtils & applied to portal selection. 2017-08-13 04:24:18 -05:00
Matias Barcenas 9a041d95bd Rewrote target AP view to utilize FormatUtils. 2017-08-13 00:25:53 -05:00
Matias Barcenas 1aa3d96c8a Fixed missing spacers, transitions & captorPID bug.
Added all missing spacers after a choice operation (missing echo).
Rearranged fluxion_header algorithm to make transitions smoother.
Fixed a bug where captorPID might be missed (not waiting [enough] for it).
2017-08-12 21:23:22 -05:00
Matias Barcenas af07814b8e Fixed a dependency-check bug introduced last commit. 2017-08-12 20:08:55 -05:00
Matias Barcenas fb316c25be Tweaked fluxion header and reenabled banner animation. 2017-08-12 19:18:53 -05:00
Matias Barcenas 33c26d3444 Rewrote header auto-resizing using FormatUtils. 2017-08-12 17:46:49 -05:00
Matias Barcenas a0ac4510e0 Rewrote scanner results auto expansion with FormatUtils. 2017-08-12 17:24:14 -05:00
Matias Barcenas ad89264442 Implemented FormatUtils & used for startup banner.
The new horizontal utility utilizes the * token for centering.
* Every field with the token %*s will autofill the remaining space.
* Field tokens may be any valid format specifier, plus the asterisk.
* > Example: printf "%*s %.*s %*d" "col1" "col2" "3.0" (notice asterisk)
* > Example: printf "%*b %s" "\e[1;33mThis is red text\e[0m" "this is not"

Use the new utilities to center the startup banner and other messages.
2017-08-12 15:43:39 -05:00
Matias Barcenas 15494058aa Resized channel field from 4-spaces down to 2. 2017-08-12 10:02:58 -05:00
Matias Barcenas c142177cda Fixed security field line-jump bug 2017-08-12 01:13:17 -05:00
Matias Barcenas d3f46cbd10 Quick fix for scanner output width auto-adjust. 2017-08-11 21:49:34 -05:00
Matias Barcenas 8e3511e921 Updated fluxion.sh comments & tweaked scanner code. 2017-08-11 18:38:52 -05:00
Matias Barcenas f4ad6b8531 Routing restoration relocation & language auto fix.
Moved the routes restoring code & forwarding to the proper unset function.
Refactored some code in set_lang. that should only happen when auto is off.
2017-08-11 03:29:47 -05:00
Matias Barcenas 2602de8738 Changed signal to quality & fixed value bug. 2017-08-11 00:03:54 -05:00
Matias Barcenas 71076314ee Changed interface search expression to support more OSs. 2017-08-10 23:34:16 -05:00
Matias Barcenas c15bd1b7bc Lang. globals, paths, exitmode update & bugfixes.
Updated fluxion and attacks scripts to use the updated language global identifiers.
Quoted some paths that handn't already been quoted (potential spacing issues).
Updated the exitmode function to deal with FLUXION-started only processes.
Fixed a bug where the "WI not supported" message was displayed when no AP were found.
Added an IO function to handle dynamic, static-text, substitution.
2017-08-10 22:02:12 -05:00
Matias Barcenas 9bcaff15bc Added quotation marks for space-containing paths. 2017-08-09 20:11:29 -05:00
Matias Barcenas 4985ff9c04 Non-existent hash messages show for 3 seconds. 2017-08-09 17:29:13 -05:00
Matias Barcenas 13d40dec93 Updated updater match regex & language files. 2017-08-09 16:25:26 -05:00
Matias Barcenas fe35c9033a Fixed hash name normalization bug, & scanner bug.
Fixed a bug where custom hash names weren't being normalized on copy.
Fixed a bug where scanner would go back to scan results rather than rescan.

Also removed some stray break statements that were no longer necessary.
2017-08-09 15:17:18 -05:00
Matias Barcenas 7961921755 Fixed updater bug, awk bug, & hash path bug.
Fixed an issue with the updater where I accidentally misspelled version.
Fixed an issue caused by different version of awk (mawk vs gawk).
Fixed an issue caused by an expansion operator in a read statement.
2017-08-09 13:49:44 -05:00
Matias Barcenas 1bab965d38 Added bash-HTML interpolation & fixed last commit.
Added bash-HTML interpolation of $APTargetSSID, $APTargetMAC, and $APTargetChannel.
> The script will find and replace these tokens if found in portal pages/files.

Fixed a bug introduced in the last commit, where target AP parameters were erroneously populated.
> This was due to the offset caused by adding the signal field, offsetting everything after it.
2017-08-08 21:37:52 -05:00
Matias Barcenas 0ab5beb965 Added signal indicator to target AP selector. 2017-08-08 20:09:05 -05:00
Matias Barcenas 5f589b4eef Rewrote fluxion for better extensibility.
Most spaghetti code has be removed or replaced with better alternatives.
Refactored most functionality into directory-based, load-on-demand, addon attack scripts.
Changed the naming scheme of variables throughout for consistency (try to stick to one, guys).
Changed color names (variable identifiers) for better consistency.
Changed language file names to follow the scheme "Language.lang"
Changed function naming scheme to better reflect their behavior, more under [ FLUXION V3 ]
Added more comments in code, attempting to decrease the obfuscation of functionality.
Minimized the usage of globals throughout the script, trying to leave absolute essentials, for safety.

Multiple improvements in general to the visuals, the algorithms, and to methods used.

[ FLUXION V3 ]
* Custom attacks may now be developed and installed independently.
* Custom portals may now be installed independently.
* Globally changed functions' naming scheme to use snake-case, systematically prefixed with:
* > set_: function will set/configure something.
* > unset_: function will undo what set_ did.
* > run_: function will execute a blocking command.
* > halt_: function will abort a running command (possibly via signals [SIGABRT])
* > start_: function will start executing something in the background.
* > stop_: function will stop background execution of something, undoing start_.

[ Custom Attacks ]
* Custom attacks must be bundled in a directory, with the name representing the attack.
* Custom attacks must include a load-script "attack.sh" within the attack directory bundle.
* Custom attacks' attack.sh script must implement the following boot functions:
* > unprep_attack: fluxion will load attack.sh and call unprep_attack to reset attack parameters.
* > prep_attack: fluxion will load attack.sh and call prep_attack to set attack parameters.
* > start_attack: fluxion will load attack.sh and call start_attack to start a stopped/unstarted attack.
* > stop_attack: fluxion will load attack.sh and call stop_attack to stop a started attack.
* Custom attacks may signal fluxion to stop an attack when done, by sending it a SIGABRT signal.

[ Custom Portals ]
* Portal-containing directories must now follow the naming scheme "Some Brand_Language.portal"
* Portal directories, after properly being named, must be stored at "attacks/Captive Portal/sites"

Function return values are significant in the script, where anything other than 0 means go back.
2017-08-08 14:14:32 -05:00
root 1c75314311 fix DHCPd output 2017-08-06 15:07:53 +03:00
root 4ca74bd34f disable destroying of interface on VAP creation https://github.com/FluxionNetwork/fluxion/issues/48 2017-08-06 14:14:17 +03:00
root d011812b22 fix update url 2017-08-06 13:46:29 +03:00
deltaxflux 638163d2b7 Better error handling 2017-07-28 22:50:50 +02:00
deltax c8b0bb2a54 Support the latest airmon version 2017-07-25 08:53:10 +02:00
Matt Gates 4bab0508c5 Introduce end-of-line normalization 2017-07-23 09:24:56 -04:00
Matt Gates 51cd1c7a00 Introduce end-of-line normalization 2017-07-23 09:18:46 -04:00
Tomas Vanagas fe535913c2 Updated fluxion.sh
Site selection page used too much space, deleted few "spaces".
2017-07-22 16:44:06 +00:00
Tomas Vanagas 997138abe8 Same "if" statements merged 2017-07-21 14:50:40 +01:00
Tomas Vanagas 34cfa8059c Path for brute force
Path for dictionary made autocomplete
2017-07-21 14:40:17 +01:00
Tomas Vanagas 4b02500551 Creating "handcheck" script
First part of "handcheck" script generating changed from append to overwrite
2017-07-21 14:37:02 +01:00
Tomas Vanagas 9784622443 Site selection page split in two columns 2017-07-19 06:03:03 +01:00
Tomas Vanagas 88e6d35743 "CHANNEL" in line 1849
I'm not sure what this part of script is doing, but it looks like this if statement never gets "true".
2017-07-18 21:17:02 +00:00
Tomas Vanagas d69f89c6ce Path autocomplete
Enabled path autocomplete when asked for handshake location
2017-07-18 20:04:57 +00:00
Tomas Vanagas 270fbbbe54 Bugfix for incorrect handshake location.
When typed incorrect handshake location, function "handshakelocation" loops in to cycle. Clearing "handshakeloc" variable breaks that loop.
2017-07-17 05:48:37 +01:00
Lorevocator 3b1245bbc0 added FRITZBOX! [ITA] 2017-07-04 03:37:13 +02:00
root ef0ba1630c Merge branch 'master' of https://github.com/FluxionNetwork/fluxion 2017-07-03 22:24:53 +02:00
root ee242d9aba Fix hostapd bug with empty channel 2017-07-03 22:24:00 +02:00
deltax 3f031aaf34 Fix negative channel bug 2017-07-03 21:52:41 +02:00
princeofguilty a66458d4e8 Bruteforce while attacking using web interface
might be lucky and find the password faster than waiting for the victim to be trapped by the evil twin attack.. anyway it wont affect the web interface at all, you can do both at the same time trying to catch the password using the fastest way
2017-07-02 11:49:00 +01:00
deltax 30b1a090b9 Fix issue #10 2017-06-29 09:21:19 +02:00
deltax 7f9abc000c Fix bad format 2017-06-28 16:56:24 +02:00
deltax 6e5465f933 Fix encoding and permission issues 2017-06-28 15:51:34 +02:00