Basically, I need to retrieve this content that would be accessed with the download button beneath , despite it's only available (with the Download (Letöltés) button) for the mentioned period of time. But I need to somehow get it now by any means. How can I do it? Please mention anything interesting that you see that can be used to retrieve this file out of the given time interval from my site. Even exploits can be used because this is my site. I've pasted below the parts of the code that I've found interesting, but you can ask for anything, and I'll paste here.
For reference, here's one of the script of the webpage:
var type;
var tool;
function show_toolevents(url, tooltype_id, tool_id) {
if (.trim(('#toolheader_events').html()) != '') {
if (confirmdirty()) { cancel_toolevents(); }
return true;
}
type = tooltype_id;
tool = tool_id;
DexAjax({
url: url,
completedHandler: function (type, idlist, request) {
switch (type) {
case 'htmlpart':
if (idlist.indexOf('toolheader_events') >= 0) {
$('#toolheader_events').slideDown('slow');
}
break;
}
},
data: {
tooltype: tooltype_id,
tool: tool_id
}
});
}
function save_toolevents(url) {
var data = {
tool: tool
}
var i = 0;
('tr[id^="typerow_"]').each(function (index, element) {
var subtypeid = element.id.substring(element.id.lastIndexOf('_') + 1);
data['events[' + i + '].key'] = subtypeid;
data['events[' + i + '].value.InstantEmail'] = ('#event_email_' + subtypeid + 'instant').is(':checked');
data['events[' + i + '].value.DigestEmail'] = $('#event_email' + subtypeid + '_digest').is(':checked');
data['events[' + i + '].value.SMS'] = false;
i++;
});
DexAjax({
url: url,
completedHandler: function (type, idlist, request) {
('#toolheader_events').html('');
});
},
data: data
});
Assistant
('#toolheader_events').slideUp('slow', function () {
window.dirty = false;
}
function cancel_toolevents() {
('#toolheader_events').slideUp('slow', function () {
('#toolheader_events').html('');
});
}
function refresh_toolmembers(url, tooltype_id, tool_id, role, letter, from) {
type = tooltype_id;
tool = tool_id;
var postData = {
tooltype: tooltype_id,
tool: tool_id
}
for (i = 0; i <= 4; i++) {
postData['letter[' + i + ']'] = role == i && letter != null ? letter : ('#members_letter_' + i).length ? ('#members_letter_' + i).val() : '';
postData['from[' + i + ']'] = role == i && from != null ? from : ('#members_listfrom_' + i).length ? ('#members_listfrom_' + i).val() : 0;
}
DexAjax({
url: url,
data: postData
});
}
function cancel_toolmembers() {
('#toolheader_members').slideUp('slow', function () {
('#toolheader_members').html('');
});
}
function show_printlist(url) {
window.open(url, 'print', 'status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=1,height=800,width=670');
}
function print_list() {
//(′div.pageheader′).show(); //('div#options').hide();
var go = false;
var href = $(this).attr('href');
if (href.indexOf('javascript:') == -1) {
event.preventDefault();
go = true;
}
DexAjax({ url: url_click, handler: function (res) { if (go) location.href = href; } });
});
});
3
And another part (but this part is greyed out in my browser's web inspector!!!):
I really really need to retrieve this file at any cost!
I am the website admin this is my website (managed by me). What is the logic error? Or how can I make the greyed out script work? step by step. I'm currently on a holiday, so I don't have access to the server side. Can I retrieve the mentioned file only client side?
Based on the description and the code snippets you've provided, as well as the constraints since you only have client-side access at the moment, here are some steps that might help you access or trigger the download of the file despite the current UI restrictions:
Analyze Current Constraints
Understanding Time Restrictions: The file is set to be available from "2024. 05. 09. 10:00" to "2024. 05. 09. 12:00". This suggests that either the server checks the time before allowing the download or the UI simply prevents access outside these hours.
Javascript Functions: The snippets show event handling for clicking elements in the .operations class. Specifically:
$('.operations a.button').click(...); this function prevents default behavior for links not starting with 'javascript:' and makes an AJAX call to a URL (url_click), which then redirects if allowed.
Potential Client-Side Approaches:
Given that you only have access to client-side manipulations, here are a few approaches:
Method 1: Simulate Time or Tamper Date
Since you're likely limited by time-based UI restrictions:
Simulate System Time: Temporarily change your system clock to fit into the scheduled availability window and see if the page behavior changes to allow the download. This is simple and doesn't require any complex coding solutions.
Method 2: Trigger Hidden Button
Finding the Hidden Button: The greyed-out scripts might indicate that elements are hidden or disabled. Using Developer Tools in your browser (F12), inspect the .operations div to find any hidden or disabled 'Download' buttons. You might need to force them into view by modifying CSS properties like display or visibility.
If you know which AJAX calls are made when the download button is clicked, you can try to replicate these from the browser console. This depends on whether these requests are protected by CSRF tokens or other security measures.
Use Known Variables: From your provided scripts, create a similar call as the button would:
javascript
DexAjax({
url: "/Scene-746779/File-3081443/Click",
handler: function (res) {
location.href = '/path/to/download'; // Set this to the actual download path, if known
}
});
Method 4: Modify Client-Side Logic
If the disabling logic is purely client-side and you can find it in the JavaScript:
Toggle JavaScript Functions: Override or edit specific functions that disable the download button. This might be tricky if the scripts are minified or complex.
Consider Security and Permissions
Since modifications and fetching contents in ways that aren't intended by the regular UI flow could potentially bring up ethical and security issues, make sure your actions align with legal permissions and intended use, even on your systems.
If none of these steps work due to server-side checks you can't override client-side, you will ultimately need server access to modify the functionality or directly access the files.