Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
fuswim
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sysadmin
fuswim
Commits
d540f952
Commit
d540f952
authored
Jul 23, 2021
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oh oh, fuck me!
parent
265756d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
fuswim
fuswim
+18
-5
No files found.
fuswim
View file @
d540f952
...
...
@@ -93,7 +93,9 @@ def checkYN(res, default='N'):
return
True
elif
res
.
lower
()
==
'n'
or
res
.
lower
()
==
'fuck no!'
:
return
False
print_error
(
'WHAT? "'
+
res
+
'"? WHAT THE FUCK? I take it as a fuck no!'
)
print_error
(
'WHAT? "'
+
res
+
'"? WHAT THE FUCK? I take it as a fuck default! ('
+
default
+
')'
)
if
default
.
lower
()
==
'y'
or
default
.
lower
()
==
'fuck yeah'
:
return
True
return
False
...
...
@@ -177,6 +179,16 @@ def fuckquit(fuck):
print_error
(
"I'M FUCKING KILLING MYSELF!"
)
sys
.
exit
(
0
)
def
insertNetwork
(
net
):
print_msg
(
"Give me the fucking data for the network "
+
net
[
'Name'
])
pwd
=
input
(
"PASSWORD: "
)
dhcp
=
checkYN
(
input
(
"DHCP? <Y|n>: "
),
default
=
'Y'
)
if
not
dhcp
:
ip
=
input
(
"IP"
)
if
len
(
sys
.
argv
)
>
1
and
sys
.
argv
[
1
]
==
'boot'
:
print_msg
(
' * start to fucking with your wireless... '
)
boot
=
True
...
...
@@ -230,9 +242,6 @@ else:
start_wpa
(
interface
)
SM
=
"init"
EXIT
=
False
selected
=
False
...
...
@@ -323,8 +332,12 @@ while not EXIT:
SM
=
"editor"
elif
fuck
in
netind
.
keys
():
selected
=
netind
[
fuck
]
SM
=
"connect"
SM
=
"
pre
connect"
elif
SM
==
"preconnect"
:
if
not
selected
[
'conf'
][
'saved'
]:
insertNetwork
(
selected
)
SM
=
"connect"
elif
SM
==
"remove"
:
print
(
"
\n
FOR FUCK SAKE, are you too lazy to do a rm by hand in "
+
NETPATH
+
"?
\n
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment