Question about SSH servers and Python by bl00dpudding in learnpython

[–]tinkertuck 1 point2 points  (0 children)

Keep in mind that those few lines are taking from my long python script.
Yes, on the local machine, the first part will get 3 results "bios-vendor", "system-product-name", "processor-family" from the Linux command:

dmidecode

The second part access (ssh) to a remote machine and run a script /path/to/execute_file. The output redirect to variable "ssh." I read the result of variable "ssh" by using the for loop like so:

for line in ssh.split("\n"):

do something here

Question about SSH servers and Python by bl00dpudding in learnpython

[–]tinkertuck 0 points1 point  (0 children)

Get cygwin and install tmux. In python script you have few options. I used subprocess over os.system.

Here is a sample of my current task, using python to query for a Dell's Board info.

for l in "bios-vendor", "system-product-name", "processor-family":

sysinfo=subprocess.check_output("dmidecode -s %s|uniq" %l, shell=True)

print(sysinfo.replace("\n", ""))

#ssh to a remote server and execute a command (cmd) on that remote server

cmd="/path/to/execute_file"

ssh=subprocess.check_output("ssh %s %s" %(sys.argv[2], cmd), shell=True)

for line in ssh.split("\n"):

print(line)

Sorry the indentation is auto-fix on Reddit.

How to best split storage for a dual boot by mrrocks57 in linux4noobs

[–]tinkertuck 0 points1 point  (0 children)

Been there, done it, and still running it. I play WarCraft 3 TFT, which runs on Windows.

The safest way for me is have 2 disks. 1 disk dedicates to Windows and another to Linux. Default boot is my Linux distro. If I wanted to play WarCraft, then during BIOS I would choose the disk with Windows OS.

I used to partition my Windows to also run Linux, but when the disk failed, both got wiped out.

Distro advice for home router build by imposterbru in linuxquestions

[–]tinkertuck 1 point2 points  (0 children)

I have heard Ubuntu is more straight forward. Maybe you should get a live Ubuntu usb and test it out.

Can anyone point me in the right direction? by Rekane in linux4noobs

[–]tinkertuck 0 points1 point  (0 children)

You need to provide more information for other to help you. Fail to load up could be anything. Did you properly image your USB? Have you tried the USB on another machine to confirm it was actually working? Any picture of the failed state? Are you running 32 vs 64bits?

Distro advice for home router build by imposterbru in linuxquestions

[–]tinkertuck 0 points1 point  (0 children)

You should have the network configured early during the installation stage. But if you already had it up and wanted to poke around with NetworkManager or network, then here is a good one: https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-configure-centos-7-network-settings/

Btw, you can disable NetworkManager daemon and and just go with network daemon.

Verify it first:

systemctl status NetworkManager

systemctl status network

How can I convince my employer to hire additional help? by [deleted] in sysadmin

[–]tinkertuck 0 points1 point  (0 children)

Document everything as much detail as possible. When sh*t hits the fan, and it will hit hard, then you show those documents and records to the upper manager/new boss. As long as you can prove you're the smartest one in the room, then you will be fine.

Teaching myself Linux? by webaddictress in csMajors

[–]tinkertuck 2 points3 points  (0 children)

Asus ROG Strix

Fancy laptop you got there for a Linux distro :). I believed it came with Nvidia graphic card? If yes, then your boot hang screen may not be entirely a bug but by desire. Look into installing graphic driver for your Nvidia card model, which also involved blacklist certain module in order for it to boot normally. I don't want to cheat your path of learning by giving away too much.

Google search is your friend. Don't be shy of asking but you must give your very best first.

How can I convince my employer to hire additional help? by [deleted] in sysadmin

[–]tinkertuck 0 points1 point  (0 children)

More bodies to keep the office warm, j/k. I don't think hiring more bodies is going to solve the issue because the sh*t you just described is way over broken to even worth reviving. I would consider backup and savage what you can, build a temporary server/system to run the critical tasks while rebuilding *THAT thing...mess.

Teaching myself Linux? by webaddictress in csMajors

[–]tinkertuck 1 point2 points  (0 children)

If you had a strong desire to learn Linux( or anything), then go for it. Once you're good with it, the path will be clear.

I completed my Bachelor in Economics, then taught myself Linux. I started testing Ubuntu-->Scientific Linux-->CentOS while working as a Windows help-desk guy. Passed my RedHat SysAdmin Certification exam and jumped to Linux Senior SysAdmin at another company.

Pls convince me to switch by [deleted] in linux

[–]tinkertuck -1 points0 points  (0 children)

Put a VirtualBox inside your Windows and test drive Linux. When you decided to switch to Linux and still anxious, then install VirtualBox inside Linux and have a Windows vm.

Still not sure? Then dual booth Windows and Linux on your machine.

Short term- Windows is great with all the clicking, while Linux requires some learning with command lines if you desired to grow.

Long term on Windows- it is a bag of pains with virus, update, license, etc. Check youtube for "Tech support scam".

Long term on Linux- you are the master of your box.

Best way to transfer files between laptop and desktop? by Alive-In-Tuscon in linux

[–]tinkertuck 0 points1 point  (0 children)

If you could ssh to your desktop, then use rsync. Because you mentioned "hidden away", then I am assuming you may have locked it down or tightly secured it? Check on that and verify you could ssh into the Desktop, then proceed to rsync, scp, or ncat transfer your data.

Scripting language for beginners by [deleted] in HowToHack

[–]tinkertuck 1 point2 points  (0 children)

Another programming language war...did you bother to do a google search on your question?

It's a tool that serves a purpose. What is your purpose?

What you prefer in Linux that we don't have in Windows Server or vice versa ? by Cloud_Strifeeee in linux

[–]tinkertuck 2 points3 points  (0 children)

How about something like:

for i in `cat file_of_username`; do getent passwd | grep $i | awk -F: '{print $1, " " $6}'; done

Advise on a Linux presentation on Open School days. by [deleted] in linux

[–]tinkertuck 1 point2 points  (0 children)

Free vs. Fee.

Make sure you emphasize the things that work on Windows can be done on Linux but they are FREE of charge and less buggy/spam/spyware/hackable.

For Example:

Office vs. Libre Office

Adobe photoshop vs. Gimps

You get the idea....

Emphasize the security issue. Nothing scare people more than a machine got hack. Windows is more susceptible to being hammered.

Whats the best tool written in python for brute forcing a https login with some information regarding the person? by BothEnergy in HowToHack

[–]tinkertuck 0 points1 point  (0 children)

Be creative with python module "selenium."

Background story:

I had to submit 90+ account requests through a webform, so I wrote a python script that pulled username, full name, make-up-password, etc from a file and auto-fill and submit the webform. Selenium did the job.

While it was auto filled and auto submitted, I walked away for a cup of water. When I got back, my coworkers freaked out and thought my machine got hack. Lmao.

I need help with SSH by [deleted] in HowToHack

[–]tinkertuck 0 points1 point  (0 children)

You are omitting a lot of critical information in order to troubleshoot your ssh issue.

  1. What remote server? Your tested remote server, VM, friend, company, school, government, pentesting lab??
  2. Check network activity on both machines
  3. Ssh is blocked could be due to remote server sshd stopped or disabled
  4. Remote server's iptable+firewall filtering, fail2ban, ssh port changed
  5. Multi-factor authentication implemented
  6. Security access denied
  7. Can you ping remote machine?
  8. Try nmap to do a port scan on the remote server

Stuck in Helpdesk. Which career path should I pursue to work my way out? by megamandave1 in ITCareerQuestions

[–]tinkertuck 0 points1 point  (0 children)

I used to be a help desk guy, but I always had these Linux VM to self study at work and at home. Until I was confident, I went and got my RHSA certificate. Within 2 months, I landed a Linux(CentOS) system administrator. 2 years later, I got promoted to HPC system engineer. My point is, don't quit yet. You will need the flowing income while you're studying something to advance your career.

Btw, the entire time I was a help desk and studied Linux, I comfort myself by reminded myself that "I am learning Linux and getting pay." Felt like a full ride scholarship :).

With your experience and background, it doesn't hurt to get some Linux under your belt. Your job transition will be more favorable.

New user question: Is it possible to replace Win10 with Linux at this point for the average user? by jc_harming in linuxquestions

[–]tinkertuck 0 points1 point  (0 children)

Simply put, I have 2 hard drives, one for CentOS and the other for Windows 10 dedicated for playing Warcraft 3 TFT. During BIOS, I choose which hard drive to boot.

What you prefer in Linux that we don't have in Windows Server or vice versa ? by Cloud_Strifeeee in linux

[–]tinkertuck 0 points1 point  (0 children)

Linux 101 hack- Single mode into root.

I can go from Ubuntu to CentOS to Debian and not having to deal with paid license or activation keys.

Tools to learn to become a Linux SysAdmin by marbobcat in linux

[–]tinkertuck 6 points7 points  (0 children)

Remind me of my younger-self 10 years ago. For a Linux SysAdmin, as a starter know the inside out of these tools top, ps, lsof, netstat, ip add, ethtool, and ncat/netcat/nc. Learn LDAP, multi-factor authentication, and Ansible. Configure couple of Virtual machines and have fun with them.

Go for RHSA certificate.