Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Flask & Files
Post: Flask & Files
Hi all! :)
I'm trying to build a private update server for my app with Flask.
The app is based on a client-server relationship, when the client runs it shows an icon on the taskbar.
when I choose the... |
|
Gilush |
Web Scraping & Web Development |
1 |
1,662 |
Oct-07-2022, 08:02 PM |
|
|
Thread: Real time Detection and Display
Post: Real time Detection and Display
Hello all! :)
I'm trying to automate a mini-game inside 'Star Trek Online' where you have 4 rows and you have to point the mouse on the right row when the object coming from the left is on a pixel / ... |
|
Gilush |
General Coding Help |
0 |
1,764 |
Feb-05-2022, 08:28 PM |
|
|
Thread: Loops Loops Loops
Post: RE: Loops Loops Loops
(Feb-22-2021, 04:34 PM)snippsat Wrote: (Feb-22-2021, 01:03 PM)Gilush Wrote: It's my first time reading about the random.sample option. what is the "k" stands for?random.sample
Basically it picks k... |
|
Gilush |
General Coding Help |
5 |
90,762 |
Feb-22-2021, 05:33 PM |
|
|
Thread: Loops Loops Loops
Post: RE: Loops Loops Loops
(Feb-22-2021, 05:24 AM)deanhystad Wrote: Your first port will always be 5000 and 5000 may appear multiple times in the list. You could have more than 10 ports in the list. The step is randomly cho... |
|
Gilush |
General Coding Help |
5 |
90,762 |
Feb-22-2021, 01:03 PM |
|
|
Thread: Loops Loops Loops
Post: Loops Loops Loops
Hey guys,
I have this empty port list that I want to fill with 10 random ports in a pre-defined range with a random N step so i've managed to, somehow, come up with that code:
ports = []
i = ... |
|
Gilush |
General Coding Help |
5 |
90,762 |
Feb-22-2021, 12:34 AM |
|
|
Thread: Working with existing files
Post: RE: Working with existing files
(Feb-10-2021, 04:59 PM)nilamo Wrote: Starting at line 22, what do you think the "continue" is doing? Why not use a "break" there?
Quote: for z in range(limit):
zipper.wri... |
|
Gilush |
General Coding Help |
7 |
2,957 |
Feb-10-2021, 08:55 PM |
|
|
Thread: Working with existing files
Post: RE: Working with existing files
(Feb-09-2021, 06:48 AM)bowlofred Wrote: What is the dozip() call on line 30 for? Could it happen continually?
My initial plan was to zip the files while gathering them so I set a limit var.
for exa... |
|
Gilush |
General Coding Help |
7 |
2,957 |
Feb-09-2021, 07:26 PM |
|
|
Thread: Working with existing files
Post: RE: Working with existing files
(Feb-09-2021, 11:54 AM)Gilush Wrote: the dozip is a function that takes the files in folder X and zipps them to folder Y.
I can call it whenever I choose to.
I'm trying to make everything re-usable.... |
|
Gilush |
General Coding Help |
7 |
2,957 |
Feb-09-2021, 12:15 PM |
|
|
Thread: Working with existing files
Post: RE: Working with existing files
the dozip is a function that takes the files in folder X and zipps them to folder Y.
I can call it whenever I choose to.
I'm trying to make everything re-usable.
def dozip(duration, limit):
print... |
|
Gilush |
General Coding Help |
7 |
2,957 |
Feb-09-2021, 11:54 AM |
|
|
Thread: Working with existing files
Post: RE: Working with existing files
OMG!
so close!!!
solution:
using the len(list) in the numbered file's name and appending the name to the list at the end of each cycle.
if len(zip_files) <= 1:
zipper = ZipFile(f"c:\... |
|
Gilush |
General Coding Help |
7 |
2,957 |
Feb-09-2021, 06:42 AM |
|
|
Thread: Working with existing files
Post: Working with existing files
Ok.
I've spent alot of time reading the forum posts related to files & stackoverflow & medium & google and more! (you get the point - i'm stuck.)
I have a zip function that works great on... |
|
Gilush |
General Coding Help |
7 |
2,957 |
Feb-09-2021, 05:01 AM |
|
|
Thread: Working with Threads
Post: RE: Working with Threads
That is exactly the solution I used in my code.
(since the code is an offensive cyber oriented project I removed it from the post.)
Should have posted the solution though.. thanks for posting it! |
|
Gilush |
General Coding Help |
2 |
1,906 |
Feb-04-2021, 02:53 PM |
|
|
Thread: Trouble with Client/Server reverse Shell!
Post: Trouble with Client/Server reverse Shell!
Hi all,
So i'm trying to create a reverse shell client/server program.
So far i'm able to listen for connections and execute the first command.
after the first command the client/server goes nuts and... |
|
Gilush |
Networking |
0 |
2,757 |
Feb-03-2021, 01:04 PM |
|
|
Thread: Working with Threads
Post: Working with Threads
Hi all,
So I have this small program that does multiple actions: Mouse - Captures mouse location.
Capture system information to file.
Keylogger - logging keyboard presses and save to file.
Screens... |
|
Gilush |
General Coding Help |
2 |
1,906 |
Feb-02-2021, 05:59 AM |
|
|
Thread: Reset list if user regrets
Post: RE: Reset list if user regrets
Fixed!
def ask_if_sure(ans): # Returns True
while True:
print(f"Debug | RightAnswerNum1st: {right_answer_number[0]}")
ask_sure = input("Are you sure? [Y/n]: ")
if ask_s... |
|
Gilush |
General Coding Help |
1 |
2,044 |
Dec-05-2020, 10:55 AM |
|
|
Thread: Reset list if user regrets
Post: Reset list if user regrets
Hi again :)
I took some time to work on the input validation of my code before I convert it to Classes and I can't understand why the program ends if the user regrets his first answer and choose anot... |
|
Gilush |
General Coding Help |
1 |
2,044 |
Dec-05-2020, 01:00 AM |
|
|
Thread: Input validation goes south.
Post: RE: Input validation goes south.
Ok so I took your advise and implemented it in my code. I love it!
Don't mind the rest of the bugs I havn't got to them yet.
def get_questions():
question = input("Enter your question: ")
i... |
|
Gilush |
General Coding Help |
6 |
2,619 |
Dec-04-2020, 12:18 PM |
|
|
Thread: Input validation goes south.
Post: RE: Input validation goes south.
# Can have upper limit, lower limit, both or none
if minv and minv > value:
raise ValueError # May as well use exceptions
if maxv and maxv < value:
... |
|
Gilush |
General Coding Help |
6 |
2,619 |
Dec-04-2020, 08:07 AM |
|
|
Thread: Input validation goes south.
Post: RE: Input validation goes south.
I love you all!
My python knowlege comes from around 2 months of course study in a class for about 8 hrs a week as a small part of larger Cyber Security course.
We didn't really went deep into it lik... |
|
Gilush |
General Coding Help |
6 |
2,619 |
Dec-04-2020, 07:47 AM |
|
|
Thread: Input validation goes south.
Post: Input validation goes south.
Hi,
I'm trying to validate the number of answers per question but I can't seem to get the var to change to False when the input is wrong.
what am I missing?
def get_question_score(s):
try:
... |
|
Gilush |
General Coding Help |
6 |
2,619 |
Dec-03-2020, 11:18 PM |