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
4c27ed4e
Commit
4c27ed4e
authored
4 years ago
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better display
parent
a577f64d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
fuswim
fuswim
+32
-2
No files found.
fuswim
View file @
4c27ed4e
...
@@ -4,6 +4,7 @@ from pprint import pprint
...
@@ -4,6 +4,7 @@ from pprint import pprint
import
psutil
import
psutil
import
sys
,
os
import
sys
,
os
from
shell_cmd
import
sh
from
shell_cmd
import
sh
import
time
try
:
try
:
from
setproctitle
import
setproctitle
from
setproctitle
import
setproctitle
...
@@ -198,6 +199,7 @@ SM="init"
...
@@ -198,6 +199,7 @@ SM="init"
EXIT
=
False
EXIT
=
False
while
not
EXIT
:
while
not
EXIT
:
if
SM
==
"init"
:
if
SM
==
"init"
:
SM
=
"detect"
SM
=
"detect"
nets
=
{}
nets
=
{}
...
@@ -212,10 +214,12 @@ while not EXIT:
...
@@ -212,10 +214,12 @@ while not EXIT:
if
'Mode'
in
net
.
keys
()
and
net
[
'Mode'
]
==
'Master'
:
if
'Mode'
in
net
.
keys
()
and
net
[
'Mode'
]
==
'Master'
:
if
'Name'
in
net
.
keys
()
and
net
[
'Name'
]:
if
'Name'
in
net
.
keys
()
and
net
[
'Name'
]:
nets
[
net
[
'Name'
]]
=
net
nets
[
net
[
'Name'
]]
=
net
name
=
net
[
'Name'
]
else
:
else
:
name
=
'NoEssid_'
+
str
(
i
)
name
=
'NoEssid_'
+
str
(
i
)
i
=
i
+
1
i
=
i
+
1
nets
[
name
]
=
net
nets
[
name
]
=
net
nets
[
name
][
'Name'
]
==
name
.
replace
(
"/"
,
""
)
.
replace
(
".."
,
""
)
SM
=
"main"
SM
=
"main"
elif
SM
==
"main"
:
elif
SM
==
"main"
:
...
@@ -232,9 +236,10 @@ while not EXIT:
...
@@ -232,9 +236,10 @@ while not EXIT:
SM
=
"detect"
SM
=
"detect"
elif
fuck
.
lower
()
==
'm'
:
elif
fuck
.
lower
()
==
'm'
:
print
(
sh
(
"/usr/games/cowsay 'moo'"
))
print
(
sh
(
"/usr/games/cowsay 'moo'"
))
time
.
sleep
(
1
)
elif
fuck
.
lower
()
==
'e'
:
SM
=
"editor"
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
"
)
netind
=
{}
netind
=
{}
...
@@ -246,5 +251,30 @@ while not EXIT:
...
@@ -246,5 +251,30 @@ while not EXIT:
fuckquit
(
fuck
)
fuckquit
(
fuck
)
if
fuck
.
lower
()
==
'b'
:
if
fuck
.
lower
()
==
'b'
:
SM
=
"main"
SM
=
"main"
elif
fuck
in
netind
.
keys
():
if
os
.
path
.
isfile
(
"/"
.
join
([
NETPATH
,
netind
[
fuck
][
'Name'
]])):
print
(
colors
.
RED
+
"
\n
Fucking removing "
+
netind
[
fuck
][
'Name'
]
+
"...
\n
"
+
colors
.
ENDC
)
try
:
sh
(
"rm -f "
+
'/'
.
join
([
NETPATH
,
netind
[
fuck
][
'Name'
]])
+
" > /dev/null 2&1"
)
except
:
print
(
colors
.
RED
+
"
\n
FUCK i can't Fucking removing "
+
netind
[
fuck
][
'Name'
]
+
"!!!
\n
"
+
colors
.
ENDC
)
else
:
print
(
colors
.
RED
+
"
\n
Are you serious? you can't remove what isn't there, CUNT!
\n
"
+
colors
.
ENDC
)
time
.
sleep
(
1
)
elif
SM
==
"editor"
:
print
(
"
\n
FOR FUCK SAKE, are you too lazy to launch an editor by hand in "
+
NETPATH
+
"?
\n
"
)
netind
=
{}
fuck
=
"none"
while
fuck
not
in
netind
.
keys
()
and
fuck
.
lower
()
not
in
[
'b'
,
'q'
]:
nofuck
(
fuck
)
netind
=
show_fuck_list
(
nets
)
fuck
=
input
(
"
\n
Choose a fucking one by index, or press B for back, Q do shit the hell out: "
)
fuckquit
(
fuck
)
if
fuck
.
lower
()
==
'b'
:
SM
=
"main"
os
.
system
(
"clear"
)
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