-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInsta-hack.asm
More file actions
65 lines (54 loc) · 1.33 KB
/
Insta-hack.asm
File metadata and controls
65 lines (54 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.data
username: .asciiz "your_username"
password: .asciiz "your_password"
login_url: .asciiz "https://www.instagram.com/accounts/login/"
followers_url: .asciiz "https://www.instagram.com/%s/followers/"
following_url: .asciiz "https://www.instagram.com/%s/following/"
unfollow_url: .asciiz "https://www.instagram.com/web/friendships/%s/unfollow/"
.text
.globl main
main:
# Login to Instagram
la $a0, username
la $a1, password
jal login
move $s0, $v0
# Get followers
la $a0, username
jal get_followers
move $s1, $v0
# Get following
la $a0, username
jal get_following
move $s2, $v0
# Get unfollowers
move $a0, $s1
move $a1, $s2
jal get_unfollowers
move $s3, $v0
# Unfollow unfollowers
move $a0, $s0
move $a1, $s3
jal unfollow_users
# Exit
li $v0, 10
syscall
login:
# Implement login functionality
# Return session in $v0
jr $ra
get_followers:
# Implement getting followers functionality
# Return list of followers in $v0
jr $ra
get_following:
# Implement getting following functionality
# Return list of following in $v0
jr $ra
get_unfollowers:
# Implement getting unfollowers functionality
# Return list of unfollowers in $v0
jr $ra
unfollow_users:
# Implement unfollowing users functionality
jr $ra