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
4 years ago
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oh oh, fuck me!
parent
265756d3
master
No related merge requests found
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'):
...
@@ -93,7 +93,9 @@ def checkYN(res, default='N'):
return
True
return
True
elif
res
.
lower
()
==
'n'
or
res
.
lower
()
==
'fuck no!'
:
elif
res
.
lower
()
==
'n'
or
res
.
lower
()
==
'fuck no!'
:
return
False
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
return
False
...
@@ -177,6 +179,16 @@ def fuckquit(fuck):
...
@@ -177,6 +179,16 @@ def fuckquit(fuck):
print_error
(
"I'M FUCKING KILLING MYSELF!"
)
print_error
(
"I'M FUCKING KILLING MYSELF!"
)
sys
.
exit
(
0
)
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'
:
if
len
(
sys
.
argv
)
>
1
and
sys
.
argv
[
1
]
==
'boot'
:
print_msg
(
' * start to fucking with your wireless... '
)
print_msg
(
' * start to fucking with your wireless... '
)
boot
=
True
boot
=
True
...
@@ -230,9 +242,6 @@ else:
...
@@ -230,9 +242,6 @@ else:
start_wpa
(
interface
)
start_wpa
(
interface
)
SM
=
"init"
SM
=
"init"
EXIT
=
False
EXIT
=
False
selected
=
False
selected
=
False
...
@@ -323,8 +332,12 @@ while not EXIT:
...
@@ -323,8 +332,12 @@ while not EXIT:
SM
=
"editor"
SM
=
"editor"
elif
fuck
in
netind
.
keys
():
elif
fuck
in
netind
.
keys
():
selected
=
netind
[
fuck
]
selected
=
netind
[
fuck
]
SM
=
"connect"
SM
=
"
pre
connect"
elif
SM
==
"preconnect"
:
if
not
selected
[
'conf'
][
'saved'
]:
insertNetwork
(
selected
)
SM
=
"connect"
elif
SM
==
"remove"
:
elif
SM
==
"remove"
:
print
(
"
\n
FOR FUCK SAKE, are you too lazy to do a rm by hand in "
+
NETPATH
+
"?
\n
"
)
print
(
"
\n
FOR FUCK SAKE, are you too lazy to do a rm by hand in "
+
NETPATH
+
"?
\n
"
)
...
...
This diff is collapsed.
Click to expand it.
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