Programming › Please Someone Should Read This Code... by Nick08130(op): 6:47am On Nov 04, 2022 |
```python #!/usr/bin/env python3 # Python SSH Checker # Fix indent =G:wq import argparse import socket import paramiko import sys import os class SystemScanner: def __init__(self, target, port, service): #Globals? self.target = target self.port = port self.service = service def test_ssh(self): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: sock.connect((self.target, self.port)) print("SSH Open"  except Exception as err: #Conn failed print(f"Connection failed on "  finally: sock.close() def ssh_auth(self): test = paramiko.Transport((self.target, self.port)) try: test.connect() except paramiko.ssh_exception.SSHException as err: print(f"SSH Connection failed:", self.host, self.port, "because ", str(err)) test.close() exit(1) try: test.auth_none('') except paramiko.BadAuthenticationType as err: print(err.allowed_types) finally: test.close() def ssh_login(self): print(f"Checking {self.service} logins..."  try: print("Dropping into shell"  command = "journalctl --system --follow | grep -i ssh" '''TODO 1) Parse output and find get the info cleaner 2) Add Services [http, ftp, smb] 3) clean exit 4) Counters for successfull/failed logins ''' os.system(command) except KeyboardInterrupt as kd: exit(1) finally: print("\n\n\r\nEND"  if __name__ == '__main__': parser = argparse.ArgumentParser(prog="sysmon.py"  parser.add_argument('--port', '-p', help="Enter Port Number", type=int, default=22) parser.add_argument('--target', '-t', help='Hostname or IP', default="127.0.0.1"  parser.add_argument('--service', '-s', help="Show Service logins", default="ssh"  args = parser.parse_args() scanner = SystemScanner(args.target, args.port, args.service) if scanner.test_ssh(): scanner.ssh_auth() if args.service: scanner.ssh_login() ``` |
Nairaland General › Re: Ever Gone From Grace To Grass? by Nick08130(m): 3:33pm On Oct 30, 2022 |
Please do not be. I am like you, very rich then. I was doing well. Even planned of traveling out after graduation. Everything change with multiple of loss, lost my only Sponsor, my Dad... I was in debt... Men the story is big. Please do not give up. The sky is your limit. A little hope Sir... The experience needs you to rich again. A little smile � always. 4teenblaq: Yes,
We were living fine until scammers scammed me because of my greed. Til now, we have not recovered. I am just living waiting for the day everything will come to an end. Everything I put my hands on fails and I am already hopeless. |
Nairaland General › Re: Ever Gone From Grace To Grass? by Nick08130(m): 3:31pm On Oct 30, 2022 |
Please do not be. I am like you, very rich then. I was doing well. Even planned of traveling out after graduation. Everything change with multiple of loss, lost my only Sponsor, my Dad... I was in debt... Men the story is big.
Please do not give up.
The sky is your limit.
A little hope Sir... The experience needs you to rich again.
A little smile � always. |
Sports › Re: Roberto Gabriel Trigo: Footballer Who Brought Down A Plane With A Football Shot by Nick08130(m): 9:19am On Aug 20, 2022 |
thesicilian: Name your price sir, I have a job for you at Abuja 80k-100k |
Jobs/Vacancies › Re: How To Check If Your Name Is On The Npower Posting List On Npower Portal by Nick08130(m): 3:01pm On Aug 10, 2022 |
Please, this Npower don tired me oh... Showing shortlisted at the same time showing applicant. Why? Abeg someone say something. |
Technology Market › Acer Laptop For Sale by Nick08130(op): 12:59pm On May 16, 2022 |
Acer Laptop Aspire A5 For Sale Location PH
|
|
Nairaland General › Re: EURGBP - Head And Shoulder Pattern by Nick08130(m): 2:32pm On Mar 30, 2022 |
Your explanation is quite simple. Please I do love to work or learn from your institution. |
Politics › Re: Dino Melaye To Be Confirmed Nigeria's 'Most Truthful Politician' by Nick08130(m): 8:50pm On Feb 08, 2022 |
Some awarding institutions are phony |
Romance › Re: 31 Problems Of Good Looking People by Nick08130(m): 2:15pm On Jan 20, 2022 |
All terms are so real!. Jackanda1: I understand that good looks definately have advantages, but this thread will only discuss the disadvantages.
I am also aware that been less attractive has drawbacks. The fact that I am discussing the problems of beautiful people doesn't mean ugly people don't have problems. Let's focus on one aspect today. I have a relative who is very handsome. We grew up, lived and schooled together (nursery-university). We are very close. The points in this thread are from observation.
For some reasons let me add: He was diagnose with anxiety and depression. He had low self esteem and was mostly a loner.
1.People are mostly insecured and intimidated by good looks. So they tend to react defensively against, subdue and humiliate you.
Its the same thing when people know you have a first class grade. You'll hear all sorts of degrading comments. Insecure people people will do anything to put u down, if you've got something they don't have.
2. Most people think life is easy for you,you're getting away with things and you don't have difficulties. So they deliberately decide to treat you with disdain. They think they are bringing about justice.
3. People stereotype you to be arrogant, proud, vain, stuck up, opportunist,mean,dumb etc anything you do or say, people find a way to relate it to the judgement they already have about you.
Thats why people say things like ' Does he have a good character' when discussing about gudlooking ppl.
4. Good looks +shyness is a curse. People don't expect you to be shy. You quietness &social inhibition could be interpretate to mean pride and arrogance.
5.Having a conversation with most people is like acting a poorly scripted movie. It seems people don't know how to act normal around you.
6. People are not free around you. They don't play or joke with you like everyone else. So youre mostly isolated
7. Since people donot expect you to have difficulties. They may be unsympathetic towards your problems,mock you behind your back and even use your trouble against you.
8. You are expected to be confidence, charismatic, have leadership skills, Rich and have a good life. Inability to meet up can cause metal breakdown.
9. You become the center of attention. Topic of discussion and gossip. Your business becomes everyone's business.
10. Even if you are in the right side of an argument. People will side against you. It seems odd siding you.
11. Fine girls play over hard to get. Most average looking girls are intimidated and see themselves below your league
12. You can't joke or play around with people. They hinge on every word you say and may interpretate it to mean mockery or catty put downs.
13. Uneccesary aggression from fellow gender. Jealousy?
14. People think u are shallow, dumb, incapable etc. If a good looking person were to contest for election, most people won't vote for him. You're never taken seriously.
15. Everyone seems to easily believe anything bad about you and are willing to unite against a common enemy- you.
16. Most people donnot offer you help because they think you have it all.
17.You cannot talk about the problems of attractive people, no matter how badly it affects you.
18. Is it true people pay you complements often? Why should they? So that your head will grow bigger that it's already is?
19. If your boss is intimidated by your looks, you might not get that job , no matter the qualification.
20.There are people who judge you negatively but not to point of butting head with you.
So they decide in their mind: ' I won't pay any attention to anything he says', I won't give him any validation or pay him any complements etc. This gives them since of victory over you. You might notice they make a big deal of ignoring everything you do or say
21. People make a big deal about your looks even more you do. 22. If you recently grew into your looks, you find most of your friends ghosting you.
23. Because of this problems, you can be forced into isolation
24. You are mostly ignored in a social group. Nobody speaks to you. You'll feel like a goat among lions.
25. People feel they need to compete and win against you. You might notice them unneccesarily showing off what they have that you don't have.
26. Most people act like they have gotten a life time achievement when they embarass, insult and put you down. They seem so happy and fulfilled. Pathetic
27. Most girls who like you but are intimidated by your looks act very aggresive to get your attention. This is usually counterproductive.
28. Since pple think everyone is kind to you, they decide to be the special ones that will make your life miserable.
29. Saying no to a request, cancelling an apointment can take a toll on people's emotions. They feel you are rejecting them or you are proud.
30. I don't know for fine girls, but fine boys tend to reject favors from people becos it makes you feel indebted to them. It also make u seems weak or like a woman. Even lalasticlala and seun can attest to it.
31. You are afraid of loosing your looks since its the only thing people value about you. |
|
Foreign Affairs › Re: King Khoisan Arrested For Growing Cannibas In South Africa (Photos) by Nick08130(m): 10:36pm On Jan 13, 2022 |
His choice. The surrounding can tell of his tale. Look! You can see it. He chooses to be the King of Bushmen. ElijahIme1992: The guy no get cloth? |
Politics › Re: Governor Tambuwal Commissions 10km Roads In Ahoada LGA, Rivers State (Photos) by Nick08130(m): 12:32am On Dec 19, 2021 |
Jostoman: A very good good one from WIKE and Tambuwal, wike is really trying for his people in River state. Oga talk wentin you know oh! |
Food › Re: Which Of These 3 Meals Would You Remove Forever? (Pictures) by Nick08130(m): 10:41pm On Nov 27, 2021 |
Baawaa: Noodles,we don't eat it my house Noodles is for the chinko,their sticks are there, I am not a chinko. The rice am seeing in that picture is OFADA The Eba is well packed with okro baptized with grayfish and croaker fish,Jesu Loluwa! You make me look the Eba two times... Men the meal is so good! |
Education › Re: The Differences Between Intelligence And Wisdom by Nick08130(m): 1:23pm On Nov 18, 2021 |
snowwhyte607: I WISH I HAD KNOWN THESE PROFOUND DISTINCTIONS BETWEEN INTELLIGENCE AND WISDOM!!!
1. Intelligence leads to arguments. Wisdom leads to settlements.
2. Intelligence is power of will. Wisdom is power OVER will.
3. Intelligence is heat, it burns. Wisdom is warmth, it comforts.
4. Intelligence is pursuit of knowledge, it tires the seeker. Wisdom is pursuit of truth, it inspires the seeker.
5. Intelligence is holding on. Wisdom is letting go.
6. Intelligence leads you. Wisdom guides you.
7. An intelligent man thinks he knows everything. A wise man knows that there is still something to learn.
8. An intelligent man always tries to prove his point. A wise man knows there really is no point.
9. An intelligent man freely gives unsolicited advice. A wise man keeps his counsel until all options are considered.
10. An intelligent man understands what is being said. A wise man understands what is left unsaid.
11. An intelligent man speaks when he has to say something. A wise man speaks when he has something to say.
12. An intelligent man sees everything as relative. A wise man sees everything as related.
13. An intelligent man tries to control the mass flow. A wise man navigates the mass flow.
14. An intelligent man preaches. A wise man reaches.
*Intelligence is good* *but wisdom achieves better results.* May we continue to grow in wisdom. � Amen! |
Jobs/Vacancies › Re: 30000 Pending On Npower Payment Portal by Nick08130(m): 5:20am On Nov 09, 2021 |
Babawee: This not real even the NPWR code self get as e be It's real. |
Science/Technology › Re: Stunning Shot Of Gorilla Surrounded By Butterflies Wins Photography Contest(Pix) by Nick08130(m): 10:15am On Oct 17, 2021 |
[quote author=illicit post=106796853]  Fish eat fish The Nature of man! |
Politics › Re: Pictures As Tinubu Returns To Nigeria After Undergoing Knee Surgery In London by Nick08130(m): 7:54am On Oct 09, 2021 |
Just His brand! Wahalaperson: I guess he has many pairs of this particular shoes.  |
Travel › Re: Photos Of The New Uyo-Ikot Ekpene Road: Akwa Ibom & Good Roads Na 5&6 by Nick08130(m): 10:30pm On Oct 05, 2021 |
The sky is blue The trees are seen smiling What a lovely State. |
Education › Re: 10k Giveaway For 10 Lucky Students by Nick08130(m): 10:00am On Sep 18, 2021 |
Ajah Onyebuchi Nicholas snowland: Hi all,
I'm giving out 10k each to 10 lucky students on the forum, no strings attached. It's my humble way to give back to the society. PLEASE READ AND FOLLOW THE LAID DOWN PROCEDURES CAREFULLY.
Here's how this will work: 1. You must be a student in any of Nigeria higher institutions of learning. School ID will be asked for proof of claim. Failure to provide this will disqualify you.
2. Your account here on Nairaland must be at least 1 week old. No newly created account will be accepted.
3. Names will be selected on the basis of first come first served. If any of the first 10 names fails to qualify(provide proof of studentship), next names would be selected to replace the non qualified ones.
4. Names will be selected on Saturday, 18th of Sept. 2021 starting from 10am Nigerian Time. So if you drop your name before 10am, you will not be selected.
First 10 names submitted after 10am will be selected
Good luck.
UPDATE: The instruction is very clearly stated that names dropped before 10am naija time WILL NOT be selected. Qualified students will only be selected from those that dropped their names starting from 10am. NO EXCEPTIONS. |
|
Family › Re: Introverts Lounge (Extroverts Pls Keep Off !!) by Nick08130(m): 7:10am On May 16, 2021 |
08130541658 please add me up. [quote author=OJay360 post=101479258][/quote] |
Investment › Re: Binary.com Deposit by Nick08130(op): 3:56am On May 09, 2021 |
Thanks to you all. Contacted access bank, said they do not support deposits with binary.com... Thanks. |
Investment › Binary.com Deposit by Nick08130(op): 11:33am On May 07, 2021 |
Please I need help, I have been finding it difficult to deposit fund with my access visa debit card for weeks now. Binary.com keep telling me to contact my bank. What could be the problem, your suggestions are highly recommended?
Anyone with similar experience should assist me. |
Jobs/Vacancies › Re: I Need Someone Who Can Work From Home (10k Per Month ) by Nick08130(m): 6:29pm On May 01, 2021 |
... Interested. Mysmartnetwork: requirements: must have a pc must know how to use ms office must know how to create/edit pdf files must know how to edit pictures using simple photo editing tools must be active on whatsapp
task : you will create pdf files using using materials that I will make available create clean and simple text image using information that I will provide carry out simple tasks on pc
conntact me on -- mysmartnetwork96@gmail.com |
Business › Re: SCAM ALERT: Theobarth grant disbursement by Nick08130(m): 7:01am On Apr 28, 2021 |
Hope I can still send mine. teachlead: Drop your Name, Account number & bank and any valid phone number, to be added to my cluster.
Disbursements will be carried out at unit/clusters, if you’re not in a cluster already, find one and join now. There’re thousands of clusters in the 36 states of Nigeria and the FCT.
N/B: don’t not pay to anyone for facilitation, this exercise is totally free.
The grant is real and we will all smile in a few weeks. |
Christianity Etc › Re: Just 2% Of Israel's Population Are Christians (What Then Is The Largest Religion by Nick08130(m): 10:17pm On Aug 07, 2020 |
And the argument commenced. |
|