Skip to content

Commit

Permalink
added IGG Games
Browse files Browse the repository at this point in the history
  • Loading branch information
bipinkrish authored Oct 10, 2022
1 parent 411834f commit 038e2c2
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 26 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ hd - HubDrive
kd - KatDrive
sc - Script Links
ol - OlaMovies
ig - IGG Games
```

94 changes: 94 additions & 0 deletions bypasser.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,100 @@
load_dotenv()


################################################
# igg games

def decodeKey(encoded):
key = ''

i = len(encoded) // 2 - 5
while i >= 0:
key += encoded[i]
i = i - 2

i = len(encoded) // 2 + 4
while i < len(encoded):
key += encoded[i]
i = i + 2

return key

def bypassBluemediafiles(url, torrent=False):
headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Alt-Used': 'bluemediafiles.com',
'Connection': 'keep-alive',
'Upgrade-Insecure-Requests': '1',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Sec-Fetch-Site': 'none',
'Sec-Fetch-User': '?1',

}

res = requests.get(url, headers=headers)
soup = BeautifulSoup(res.text, 'html.parser')
script = str(soup.findAll('script')[3])
encodedKey = script.split('Create_Button("')[1].split('");')[0]


headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Referer': url,
'Alt-Used': 'bluemediafiles.com',
'Connection': 'keep-alive',
'Upgrade-Insecure-Requests': '1',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Sec-Fetch-Site': 'same-origin',
'Sec-Fetch-User': '?1',
}

params = { 'url': decodeKey(encodedKey) }

if torrent:
res = requests.get('https://dl.pcgamestorrents.org/get-url.php', params=params, headers=headers)
soup = BeautifulSoup(res.text,"html.parser")
furl = soup.find("a",class_="button").get("href")

else:
res = requests.get('https://bluemediafiles.com/get-url.php', params=params, headers=headers)
furl = res.url
if "mega.nz" in furl:
furl = furl.replace("mega.nz/%23!","mega.nz/file/").replace("!","#")

#print(furl)
return furl

def igggames(url):
res = requests.get(url)
soup = BeautifulSoup(res.text,"html.parser")
soup = soup.find("div",class_="uk-margin-medium-top").findAll("a")

bluelist = []
for ele in soup:
bluelist.append(ele.get('href'))
bluelist = bluelist[6:-1]

links = ""
for ele in bluelist:
if "bluemediafiles" in ele:
links = links + bypassBluemediafiles(ele) + "\n"
elif "pcgamestorrents.com" in ele:
res = requests.get(ele)
soup = BeautifulSoup(res.text,"html.parser")
turl = soup.find("p",class_="uk-card uk-card-body uk-card-default uk-card-hover").find("a").get("href")
links = links + bypassBluemediafiles(turl,True) + "\n"
else:
links = links + ele + "\n"

return links[:-1]


###################################################
# script links

Expand Down
75 changes: 49 additions & 26 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pyrogram
from pyrogram import Client
from pyrogram import filters
from pyrogram.types import InlineKeyboardMarkup,InlineKeyboardButton
import bypasser
import os
import ddl
Expand Down Expand Up @@ -35,6 +36,12 @@ def mainthread(cmd,message):
app.send_message(message.chat.id, f"⚠️ __Invalid format, either__ **reply** __to a__ **link** __or use like this ->__ **{cmd} link**", reply_to_message_id=message.id)
return

# igg games
if cmd == "/ig":
print("You Have Entered igg:",url)
msg = app.send_message(message.chat.id, "🔎 __bypassing...__", reply_to_message_id=message.id)
link = bypasser.igggames(url)

# ola movies
if cmd == "/ol":
print("You Have Entered ola movies:",url)
Expand Down Expand Up @@ -218,14 +225,15 @@ def mainthread(cmd,message):
link = bypasser.others(url)

# finnaly
print("bypassed:",link)
try:
app.edit_message_text(message.chat.id, msg.id, f'__{link}__')
except:
app.edit_message_text(message.chat.id, msg.id, "__Failed to Bypass__")


AvailableCommands = ['ol','sc','dl','kd','hd','df','ko','fc','su','sg','gy','pi','st','ps','sh','gt','af','gp','dp','lv','rl','ou','gd','ot']
# commands
AvailableCommands = ['ol','sc','dl','kd','hd','df','ko','fc','su','sg','gy','pi','st','ps','sh','gt','af','gp','dp','lv','rl','ou','gd','ot','ig']
@app.on_message(filters.command(AvailableCommands))
def receive(client: pyrogram.client.Client, message: pyrogram.types.messages_and_media.message.Message):
bypass = threading.Thread(target=lambda:mainthread(message.text.split(" ")[0],message),daemon=True)
Expand All @@ -234,32 +242,40 @@ def receive(client: pyrogram.client.Client, message: pyrogram.types.messages_and

# start command
@app.on_message(filters.command(["start"]))
def send_welcome(client: pyrogram.client.Client, message: pyrogram.types.messages_and_media.message.Message):
def send_start(client: pyrogram.client.Client, message: pyrogram.types.messages_and_media.message.Message):
app.send_message(message.chat.id, f"__👋 Hi **{message.from_user.mention}**, i am Link Bypasser Bot, just send me any supported links with proper format and i will you give you results. use /help to veiw supported sites list.__",
reply_markup=InlineKeyboardMarkup([[ InlineKeyboardButton("🌐 Source Code", url="https://github.com/bipinkrish/Link-Bypasser-Bot")]]), reply_to_message_id=message.id)


# help command
@app.on_message(filters.command(["help"]))
def send_help(client: pyrogram.client.Client, message: pyrogram.types.messages_and_media.message.Message):
app.send_message(message.chat.id, "🔗 **Available Sites** \n\n \
`/dl` - __direct download link (/ddllist)__ \n \
`/af` - __adfly__ \n \
`/gp` - __gplinks__ \n \
`/dp` - __droplink__ \n \
`/lv` - __linkvertise__ \n \
`/rl` - __rocklinks__ \n \
`/gd` - __gdrive look-alike (/gdlist)__ \n \
`/ot` - __others (/otlist)__ \n \
`/ou` - __ouo__ \n \
`/gt` - __gdtot__ \n \
`/sh` - __sharer__ \n \
`/ps` - __psa__ \n \
`/st` - __shorte__ \n \
`/pi` - __pixl__ \n \
`/gy` - __gyanilinks__ \n \
`/sg` - __shortingly__ \n \
`/su` - __shareus__ \n \
`/fc` - __filecrypt__ \n \
`/ko` - __kolop__ \n \
`/df` - __drivefire__ \n \
`/hd` - __hubdrive__ \n \
`/kd` - __katdrive__ \n \
`/sc` - __script links__ \n \
`/ol` - __olamovies__ \n\n\
/dl - __direct download link (/ddllist)__ \n \
/af - __adfly__ \n \
/gp - __gplinks__ \n \
/dp - __droplink__ \n \
/lv - __linkvertise__ \n \
/rl - __rocklinks__ \n \
/gd - __gdrive look-alike (/gdlist)__ \n \
/ot - __others (/otlist)__ \n \
/ou - __ouo__ \n \
/gt - __gdtot__ \n \
/sh - __sharer__ \n \
/ps - __psa__ \n \
/st - __shorte__ \n \
/pi - __pixl__ \n \
/gy - __gyanilinks__ \n \
/sg - __shortingly__ \n \
/su - __shareus__ \n \
/fc - __filecrypt__ \n \
/ko - __kolop__ \n \
/df - __drivefire__ \n \
/hd - __hubdrive__ \n \
/kd - __katdrive__ \n \
/sc - __script links__ \n \
/ol - __olamovies__ \n \
/ig - __igg games__ \n\n\
__reply to the link with command or use format /xx link__",
reply_to_message_id=message.id)

Expand Down Expand Up @@ -335,6 +351,13 @@ def ddllis(client: pyrogram.client.Client, message: pyrogram.types.messages_and_
app.send_message(message.chat.id, list, reply_to_message_id=message.id)


# see help
@app.on_message(filters.text)
def short(client: pyrogram.client.Client, message: pyrogram.types.messages_and_media.message.Message):
if message.text[0] == "/":
app.send_message(message.chat.id, "__⏩ see /help__", reply_to_message_id=message.id)


# server loop
print("bot started")
app.run()

0 comments on commit 038e2c2

Please sign in to comment.